Azure / cli

Automate your GitHub workflows using Azure CLI scripts
MIT License
124 stars 52 forks source link

IPV4 or CIDR for Storage, event hub etc #70

Closed Ehsaan-Azizi closed 2 years ago

Ehsaan-Azizi commented 2 years ago

hi, I am trying to add 2 IP or CIDR ranges to my storage account or event hub namespsace in this case using az cli but it won't let me add more than one at a time. I am using this following command: az eventhubs namespace network-rule add \ --namespace-name ns-name \ --resource-group rg-name --ip-address 10.1.0.0/16,162.168.0.0/24 (allows me add one IP, how can I add more IPs here?) I keep getting this error when I add more than one IP: ERROR: BadRequest: The provided ip address mask does not follow the CIDR notation.

When I run the command twice with separate IPs then it works fine but I don't want that. I want to be able to add more IPs to one single command such as above az cli script. Any ideas? Thanks!

t-dedah commented 2 years ago

Hi @Ehsaan-Azizi, are you able to run the above script with azure cli in the terminal?

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 7 days with no activity.

Ehsaan-Azizi commented 2 years ago

Hi Deepak, Sorry for the late reply, yes I can run it in the terminal but it won't let me put more than one subnet.

Regards,

Ehsan Azizi, MS CS Engineer | IT Infrastructure


From: github-actions[bot] @.> Sent: Tuesday, February 1, 2022 3:00:50 AM To: Azure/cli @.> Cc: Azizi, Ehsan @.>; Mention @.> Subject: Re: [Azure/cli] IPV4 or CIDR for Storage, event hub etc (Issue #70)

This issue is stale because it has been open for 7 days with no activity.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/Azure/cli/issues/70*issuecomment-1026610816__;Iw!!OgnrLJOUc50AAzM!c7IJxr7G20Cl0u62zyPb3P2JOiCme7LjyHZwjFOGs1oxwI5CgusT3f2Ak-ISlA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AUGSHGVN7TQNJKX2WZFSC3TUY6OMFANCNFSM5MQFMJJA__;!!OgnrLJOUc50AAzM!c7IJxr7G20Cl0u62zyPb3P2JOiCme7LjyHZwjFOGs1oxwI5CgusT3f12orifGg$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!OgnrLJOUc50AAzM!c7IJxr7G20Cl0u62zyPb3P2JOiCme7LjyHZwjFOGs1oxwI5CgusT3f1yvN2ONA$ or Androidhttps://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!OgnrLJOUc50AAzM!c7IJxr7G20Cl0u62zyPb3P2JOiCme7LjyHZwjFOGs1oxwI5CgusT3f3fJYEECQ$. You are receiving this because you were mentioned.Message ID: @.***>

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 7 days with no activity.

Ehsaan-Azizi commented 2 years ago

Hi there, This issue should not be stale since I replied earlier this month. I still haven't resolved the issue. Please advise!

github-actions[bot] commented 2 years ago

This issue is idle because it has been open for 14 days with no activity.

t-dedah commented 2 years ago

Hi @Ehsaan-Azizi

Sorry for the late reply, yes I can run it in the terminal but it won't let me put more than one subnet.

If I understand correctly you are not able to run the command even from azure-cli in your terminal. That means the issue if with the underlying cli itself. I have raised an issue with azure-cli team as this repo is for the action based on azure-cli rather than azure-cli itself.

https://github.com/Azure/azure-cli/issues/21098

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] commented 2 years ago

This issue is idle because it has been open for 14 days with no activity.

t-dedah commented 2 years ago

Hi @Ehsaan-Azizi are you still facing this issue? If no then should I go ahead and close the issue. Any further azure-cli related conversation can continue on the issue created with azure-cli team here https://github.com/Azure/azure-cli/issues/21098

github-actions[bot] commented 2 years ago

This issue is idle because it has been open for 14 days with no activity.