Azure CLI example: Reset the account credentials

Media Services logo v3


Warning

Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.

The Azure CLI script in this article shows how to reset your account credentials and get the app.config settings back.

Prerequisites

Create a Media Services account.

Example script

# Update the following variables for your own settings:
resourceGroup=amsResourceGroup
amsAccountName=amsmediaaccountname

az ams account sp reset-credentials \
  --account-name $amsAccountName \
  --resource-group $resourceGroup