New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Network] az network profile list --resource-group {} returns empty result #20587
Comments
@kairu-ms, could you help take a look? |
Can you take a look at this? This makes it impossible at the moment to deploy a private IP address in a virtual network through a yaml file with this error
|
Hi @joseph-porter, can you have a look at this? Thanks. |
Looks like the CLI version here is 2.30.0, which no longer uses or creates a Network Profile. The newer API version for ACI has removed Network Profile and now uses the subnet ID property directly for deploying with virtual networks. The CLI create command in the initial question should still deploy a container in a virtual network, it just no longer creates a Network Profile and instead fills the request to ACI with the proper subnet information used by the more recent API version. Previous versions of the API still support Network Profile, so those can still be used if you wish to continue using the Network Profile. The last CLI version that automatically creates the Network Profile would be 2.28.0 and could be used if you still want to create Network Profiles via the CLI. |
CLI was the only practical way to create a network profile. Now you have to call the rest API directly, which for bonus points is hidden from the azure API documentation. The network profile is needed for the YAML based container group deployment https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet which requires a network profile id. Does the yaml configuration support specifying subnets directly in some undocumented form? If I am not missing something you hindered this use case when you removed network profile functionality from the most recent CLI versions. Was there any benefit from its removal to the CLI user? Also the CLI documentation is no longer correct https://docs.microsoft.com/en-us/cli/azure/network/profile?view=azure-cli-latest#az_network_profile_list
|
The updated documentation was recently published with details of the changes and example usage: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet |
This solves my problem, thanks |
When replacing network profile with subnet ids in the YAML configuration, I get
Running
|
This is autogenerated. Please review and update as needed.
Describe the bug
az network profile list
outputs the empty resultThis outputs empty results without errors.
Command Name
az network profile list
Errors:
To Reproduce:
Following the document describing how to deploy a container inside a virtual network,
(There is a subnetIds field in the output of the first step, is this the same?)
Expected Behavior
output a network profile id
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: