question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
alexlydiatecommented, Feb 15, 2021

That’s not a user issue - the error message is incorrect.

5reactions
Steinichecommented, Feb 17, 2021

I agree with @alexlydiate the error message could definitely be improved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found