After installing the CLI restart YouDoCMS and go to settings where you should see that our application has recognised that the CLI has been successfully installed.
The command line application is called by YouDoCMS to manage your Azure resources and storage including single click deployment of your static website.
The Azure setup process is very straightforward. The steps are as follows:
Create an account for the Microsoft Azure Portal "https://portal.azure.com" if you do not have one. Please read our article about the Microsoft free trial subscription. Microsoft requires you to enter payment details however basic static website hosting is free of charge for up to 2 custom domains.
Create a default subscription to be used for your site. Copy the subscription ID from the portal into our application Settings - Microsoft Azure - Subscription ID field.
Enter a name for your resource group (this can be anything).
Enter a name for the storage account. This will be associated with the resource group so it makes sense to relate the two names.
Use the login button this will prompt you to login to your Microsoft account via the command line interface. This is a silent login and you will be directed to the browser. After successfully logging in return to our application.
Choose the option to refresh and our application will check for the existence of the resource group and storage account and return "not exists".
Use the create CDN profile button and the command line interface will create your resource group and storage account together with the CDN endpoints on Microsoft Azure. The status is updated to "OK" after the CDN has been created.
In your azure portal you will now see the newly created resource group plus the bucket and cdn endpoint.