Closed bmukes closed 4 years ago
Another update. I have a previously created resource group, firewall, vnet and correct subnet AzureFirewallSubnet 172.20.216.0/26
I Tried to run az network firewall ip-config create on the firewall and getting the same error as mentioned in the previous post. The difference is that I executed the command within the Cloud Shell in both BASH and PowerShell.
az network firewall ip-config create --firewall-name "nxt-aaa-devnxt-wu2-afw" --name "IpConf" --public-ip-address "nxt-aaa-devnxt-wu2-pip" --resource-group "nxt-aaa-devnxt-wu2-rg" --vnet-name "nxt-aaa-devnxt-wu2-vnet"
request failed: Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/nxt-aaa-devnxt-wu2-rg/providers/Microsoft.Network/azureFirewalls/nxt-aaa-devnxt-wu2-afw?api-version=2019-11-01 (Caused by ResponseError('too many 500 error responses',))
Hi @MyronFanQiu , could you please help take a look at this ?
add to S166.
@bmukes Hello. Let's confirm the problem.
Yes confirmed
@bmukes Hello. It's quite strange because azure cli doesn't do anything special. Do you still meet such problem? Do you try to create new RG, Vnet and IP?
I stopped trying to create a firewall using CLI for now because they cost approximarely $1000 per month which is a bit much for a development environment.
BRIAN MUKES | Architect INSURANCE TECHNOLOGIES t: +1 719.442.6400 | f: +1 719.442.0600 [cid:image001.png@01D5E63C.DAD58430]https://www.insurancetechnologies.com/
From: MyronFanQiu notifications@github.com Sent: Monday, February 17, 2020 10:37 PM To: Azure/azure-cli azure-cli@noreply.github.com Cc: Mukes, Brian BMukes@InsuranceTechnologies.com; Mention mention@noreply.github.com Subject: Re: [Azure/azure-cli] cannot run az network firewall ip-config create using Azure CLI in powershell 6 Locally (#12082)
@bmukeshttps://github.com/bmukes Hello. It's quite strange because azure cli doesn't do anything special. Do you still meet such problem? Do you try to create new RG, Vnet and IP?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/12082?email_source=notifications&email_token=AAU2RRKNIB4PUGAP7KZU3TDRDNXWNA5CNFSM4KRBMMS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMAUVSY#issuecomment-587287243, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAU2RRIMUI2OZ25VV54RNI3RDNXWNANCNFSM4KRBMMSQ.
• Confidential and proprietary information may be contained in this communication, including attachments. If you are not the intended recipient, you must not use, copy, disclose, distribute or retain this communication or any part of it. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately by return e-mail and permanently delete this message and any attachments.
@bmukes Hello. Thanks for opening this issue. Currently, we don't have enough tests for different terminals. We will consider this issue and add more tests for it in the future . I would close this issue first since it's not a blocker right now. Feel free to open a new issue if you have any more question.
Describe the bug cannot run az network firewall ip-config create in powershell on local Windows 10 PC. Error returned from the script is request failed: Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/Test-FW-RG/providers/Microsoft.Network/azureFirewalls/Test-FW01?api-version=2019-09-01 (Caused by ResponseError('too many 500 error responses',))
To Reproduce The IP addresses and code is copied from Deploy and configure Azure Firewall using Azure CLI The web page assumes you are using the BASH shell but I removed the line continuations for powershell
Expected behavior When running the code in Azure Portal Cloud Shell BASH or PowerShell it works correctly; However, the ip-config create command takes up to 5 minutes to complete. I believe the timeouts for the CLI in the Cloud Shell are different than powershell 6 running locally which would explain why it executes successfully in the Cloud Shell. When running in PowerShell under Windows 10 you get the error mentioned above:
Environment summary
Visual Studio Code Environment
Additional context I normally run Powershell under Visual Studio Code but you will get the same error if running under the PowerShell Command Environment.