MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.21k stars 21.37k forks source link

fix: Issue with command to create firewall rule #99594

Closed supernatix closed 1 year ago

supernatix commented 1 year ago

In the article there is a command to create the firewall rule which seems to have incorrect or deprecated parameters.

The line: az mysql flexible-server firewall-rule create --name allanyAzureIPs --server --resource-group myResourceGroup --start-ip-address 0.0.0.0 --end-ip-address 0.0.0.0

Should be: az mysql flexible-server firewall-rule create --rule-name allanyAzureIPs --name --resource-group myResourceGroup --start-ip-address 0.0.0.0 --end-ip-address 0.0.0.0

At least that is what worked for me after checking documentation on that command here,

https://learn.microsoft.com/en-us/cli/azure/mysql/flexible-server/firewall-rule?view=azure-cli-latest#az-mysql-flexible-server-firewall-rule-create


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ManoharLakkoju-MSFT commented 1 year ago

@supernatix Thanks for your feedback! We will investigate and update as appropriate.

shaktisingh-msft commented 1 year ago

Hi @shreyaaithal,

Could you please look into this document update request. Thanks!

supernatix commented 1 year ago

Hi,

There is potentially a few more changes I found as I followed it further so I can gather them all together if it helps.

It is not difficult to figure out based on the errors returned when there is a problem so much appreciated for providing the steps in first place.

Thanks!

supernatix commented 1 year ago

FYI, this was using the Cloud Shell in Azure so it should be a very recent version.

image

shreyaaithal commented 1 year ago

@supernatix , thanks for pointing this out! This article is archived and will be deleted. Please refer the following two articles for deploying PHP apps on App Service and integrating with Azure Database for MySQL - Flexible Server:

shreyaaithal commented 1 year ago

please-close