Comments (9)
Thanks for filing this request, @jloisel. @weidongxu-microsoft could you help triage this
from azure-sdk-for-java.
@XiaofeiCao Do we know whether network RP behave correctly on this (delete IP address when delete VM)?
We can have Hong try it.
from azure-sdk-for-java.
According to my knowledge, deleteOption is only effective on NetworkInterface
's PublicIpAddress
property, not PublicIpAddress
or VirtualMachine
itself.
@v-hongli1 Would you help try whether deleteOption works on PublicIpAddress
?
from azure-sdk-for-java.
- I tried to fix the
azure-resourcemanager-network
interface and tested and found thatdeleteOption
does not works onPublicIpAddress
and does not return this item.
The test result following as:
PublicIPAccessTests.testCreateIPAccessWithDeleteOptionDelete.json - Now the
deleteOption
is also not supported onPublic IP Address
in the portal.
from azure-sdk-for-java.
@v-hongli1 Got it. The deleteOption may not be visible in the PublicIpAddress
's properties, but it may ACTUALLY take effect.
Would you help confirm whether this deleteOption takes effect when deleting the VM that it attaches to(though if I remembered correctly, it does not)?
from azure-sdk-for-java.
@XiaofeiCao
Regardless of whether .withPrimaryNetworkInterfaceDeleteOptions(DeleteOptions.DELETE)
is loaded when the virtual machine is created, the Public IP Address
is not removed when the virtual machine is removed. I think Public IP Address
may not contain deleteOption
in its properties.
from azure-sdk-for-java.
It is in PublicIpAddress
https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressInner.java#L497-L499
But if it does not have effect, then it may not be supported yet (or have bug in backend).
Could you try this on portal and see if this deletes IpAddress when delete VM?
If yes, check the resource create by Portal.
from azure-sdk-for-java.
@XiaofeiCao Do you aware any other option that may help user delete the IpAdress with the VM?
from azure-sdk-for-java.
My experience is that the PublicIpAddress deleteOption is in NetworkInterface
resource.
There's also a potential backend bug: If PublicIpAddress
deleteOption is not set when attached to NetworkInterface
(whether using RP's API or deployment template), it'll always be null, regardless of future updates(luckily Databricks has set deleteOption in their create deployment template)...
Azure/azure-rest-api-specs#25475
Our SDK didn't set this property during PublicIpAddress
attach, so even update won't work.
For above reason, I'm afraid for now we'll have to wait for the feature to be added.
from azure-sdk-for-java.
Related Issues (20)
- EventHubs: document or remove AZURE_EVENT_HUBS_CONNECTION_STRING
- [FEATURE REQ] Support `withFreeTier`, `withStandardTier` and `withPremiumTier` for aks. HOT 2
- Move azure-aot-graalvm-perf package to `common` directory from `sdk/aot`
- [BUG] Criteria API does not allow to pass a list of values for ARRAY_CONTAINS criteria type HOT 4
- Core - Plugin - Tracing OpenTelemetry Plugin Readme Issues HOT 1
- Core - Client - Test Readme Issues
- Cosmos DB Readme Issues
- Azure AI Search Sample Issues HOT 3
- [BUG] Update azure-communication-email as it contains vulnerabilities HOT 1
- [FEATURE REQ]Provide a way to know whether a container has hierarchical namespace enabled when using token credentials HOT 12
- [BUG] getMetadata returns only nulls HOT 2
- [BUG] Encountering "java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread parallel-3" during delete operation after upgrading to latest Cosmos SDK and Spring Boot 3 HOT 2
- Just a blank issue for sanity testing HOT 2
- OpenSsl:154 - Failed to load netty-tcnative;OpenSslEngine will be unavailable, java.lang.illegalArgumentException: Failed to load any of given libraries :[netty_tcnative_windows_x86_64, netty_tcnative_x86_64, netty-tcnative HOT 4
- Make it so that `Response` contents can be lazily deserialized where necessary. HOT 2
- azure-ai-openai missing method to call GPT-4-turbo vision HOT 1
- [BUG] com.azure.core.http.HttpClient resolves proxy's DNS name only once and caches the IP address forever regardless of TTL. HOT 8
- [BUG] Android java - azure-storage-blob - blobClient.getProperties().getLastModified() - Wrong number of arguments; expected 1, got 0 HOT 5
- [OpenAI] Create a policy to route the AOAI and OAI API calls
- [BUG] Java OpenAI EmbeddingsOptions requires setUser be called with non-null value HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.