Unable to set IP Address Type with ACI
See original GitHub issue
az feedback
auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
When attempting to deploy an Azure Container Instance to a Virtual Network, I am unable to set the IP Address Type to “Private” with the --ip-address Private
flag.
To Reproduce Run the following script:
az container create \
--ip-address Private \
--resource-group modern.sftp.test \
--name hjfmodsftp \
--image atmoz/sftp:latest \
--dns-name-label hjfmodsftp \
--ports 22 \
--vnet sftp-virtual-network \
--subnet default \
--azure-file-volume-account-name dedicatedsftpstorage \
--azure-file-volume-account-key FSyB1JUtqEZA0+8s8b+N4SMjTkrTVPGT84/ejeN5tbNPgtmy6tNfgeuuoso6g4M7JOg4XbrGo9txLnA08yHuhQ== \
--azure-file-volume-share-name persistent-sftp \
--azure-file-volume-mount-path /aci/logs/
Expected behavior
The container should deploy. Instead, I get the error message:
IP Address type can't be public when network profile is set.
Environment summary
- Shell: ZSH 5.7.1
- OS: MacOs 10.15.3
- CLI Version: 2.0.77 (code)
Additional context none
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Solved: Cisco ACI IP address assignment default
Solved: Hi, After providing the VTEP pool /16 assignment to apic, by default what interfaces are created, as i can see l0, l1,...
Read more >Azure container Instance in a Vnet doesn't support static IP or ...
I am deploying containers in ACI group in a private V-Net and the main problem which I am facing is that this doesn't...
Read more >Configure a Virtual IP Network - VMware Docs
Click Add Subnet. · In IP Subnet, enter the CIDR of the network that provides the virtual IP addresses. · Select Add Static...
Read more >set-ip-address-type — AWS CLI 1.27.34 Command Reference
The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can't specify dualstack for a load balancer...
Read more >Azure Container instances no IP - Stack Overflow
TL;DR. You might want to use the CLI (or other methods) to deploy ACI. Be sure to set either --ip_address public or --dns-name-label...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s not a user issue - the error message is incorrect.
I agree with @alexlydiate the error message could definitely be improved.