In the CSES world, users usually need to manage cloud service (extended support) via PowerShell, since some management operations are not available in portal so far. This blog provides some common samples to manage cloud service (extended support) resources by PowerShell.
Following perspectives will be introduced in this blog:
CSES creation via PowerShell
CSES updating via PowerShell
Enable CSES RDP extension via PowerShell
If engineers or customers encounter similar following error, it may be because the module isnot successfully installed or there is some issue with this version of module. We can install/uninstall the Az module.
In the Azure portal, you can generate SAS URL from the storage account container.
Make surethe cscfgfile you used can match the csdef in the cspkg file. Even when you meet the following message, it still may because you use the unmatched files..
Az.CloudService\New-AzCloudService : The CSCFG could not be parsed. Please use the documentation at https://aka.ms/cses-cscfg-schema for CSCFG schema details.
More details: Top-level XML element does not conform to schema
Except the above two samples, you can use the New-AzCloudServicecommand withdifferent groupsof parameters. And you need to make sure that the pair of parameters is correct.Such like when you use the local file to create theCSES, the-StorageAccountis necessary.You can check the parameters pairs in the second referencedocumentation.