I am using Pay-as-you-go subscription and i was using below Powershell command to create cdn profile.
New-AzCdnProfile -ProfileName "cdnprofileforcache" -ResourceGroupName "rg-cdn" -Sku "Premium_Verizon" -Location "Uk South" -ErrorAction Stop -Verbose
it returns me with very minimal information as error.
New-AzCdnProfile : Operation returned an invalid status code 'BadRequest' At line:1 char:1 + New-AzCdnProfile -ProfileName "cdnprofileforcache" -ResourceGroupName "rg-cdn" ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzCdnProfile], ErrorResponseException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Cdn.Profile.NewAzureRmCdnProfile
After i try multiple option with Powershell i was trying to execute same command with Azure CLI and i got bellow error. Which makes more scenes to me.
Then i try this Powershell command
Solutions :-
Conclusion You need to use only those region where 'Microsoft.Cdn' provider does support. As of now (12/10/2021) Microsoft does support for only below regions. The below regions or location will change.