MicrosoftDocs / azure-docs

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

az network front door create accepted-protocols sample misleading #82885

Closed kaganmersin closed 2 years ago

kaganmersin commented 3 years ago

Hello below sample with accepted-protocols parameters is not working and misleading please fix documentation referring from https://github.com/Azure/azure-cli-extensions/issues/670#issuecomment-489704752

Wrong sample in official documentation (https://docs.microsoft.com/en-us/azure/frontdoor/quickstart-create-front-door-cli#create-the-front-door)

az network front-door create \
--resource-group myRGFDCentral \
--name contoso-frontend \
--accepted-protocols http https \
--backend-address webappcontoso-1.azurewebsites.net webappcontoso-2.azurewebsites.net

Correct one

az network front-door create \
--resource-group $resourceGroup \
--name $frontDoorName \
--accepted-protocols "Http" "Https" \
--backend-address <fqdn>

Document Details

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

SaiKishor-MSFT commented 3 years ago

Thanks for the feedback! I have assigned the issue to the content author to investigate this and update the document as appropriate.