Posts

Showing posts from 2020

How to Deploy and Test an Arm Template using Azure CLI

To deploy an arm template using the Azure CLI, do the following: New-AzResourceGroupDeployment -Name ValidateDeployment -ResourceGroupName *nameOfResourceGroup*  -TemplateFile *PathToArmTemplate* -TemplateParameterFile *PathToArmTemplateParams* You can also test the deployment before you actually perform the operation. Use the following command to test the arm template deployment: Test-AzResourceGroupDeployment -ResourceGroupName *nameOfResourceGroup*  -TemplateFile *PathToArmTemplate* -TemplateParameterFile *PathToArmTemplateParams* If the command runs successfully, you can check the portal for your resources. Cheers

How to create CDN endpoint using Azure CLI

First connect to your Azure instance az login Then run the following command az cdn endpoint create --resource-group *resourceGroupName* --profile-name *cdnProfileName* --name *endpointName* --origin *originDomain* Once the process completes, you will see a new endpoint in your cdn profile. Cheers