Cloud Service (extended support) management via PowerShell

Published Oct 28 2021 11:02 PM 1,094 Views
Microsoft

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: 

  • Environment preparation 
  • CSES creation via PowerShell   
  • CSES updating via PowerShell   
  • Enable CSES RDP extension via PowerShell 

 

  • Prepare environment 
  • 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. 

    • Install-Module -Name Az 
      
    • Uninstall-Module -Name Az -AllVersions 

Reference doc:  

Install the Azure Az PowerShell module | Microsoft Docs 

Uninstall Azure PowerShell | Microsoft Docs 

 

  • Create a new cloud service (extended support) 
    • Create CSES with local files.
      $cspkgFilePath ="C:\SE\Cloudservice\cses-cscfgfile.cspkg" 
      $cscfgFilePath = "C:\SE\Cloudservice\cses-cscfgfile.cscfg" 
      $csdefFilePath = "C:\SE\Cloudservice\cses-csdeffile.csdef" 
      $storageAccount= "storageacc4cses"      
       
      # Create Cloud Service    
      New-AzCloudService -Name "blog2ps-cses2" -ResourceGroupName "cloudservice2-Migrated" -Location "WestUS" -ConfigurationFile $cscfgFilePath -DefinitionFile $csdefFilePath -PackageFile $cspkgFilePath -StorageAccount $storageAccount  
    • Create CSES with cspkg file from the storage account
      $cspkgUrl = "cspkg SAS URL" 
      $cscfgFilePath = "C:\SE\Cloudservice\cses-cscfgfile.cscfg" 
      $csdefFilePath = "C:\SE\Cloudservice\cses-csdeffile.csdef" 
      
      New-AzCloudService -Name "blog2ps-cses2" -ResourceGroupName "cloudservice2-Migrated" -Location "WestUS" -ConfigurationFile $cscfgFilePath -DefinitionFile $csdefFilePath -PackageUrl $cspkgUrl 

Note: 

In the Azure portal, you can generate SAS URL from the storage account container. 

yiyang2_0-1635426044269.png

Important: 

  • Make sure the cscfg file 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-AzCloudService command with different groups of parameters. And you need to make sure that the pair of parameters is correct. Such like when you use the local file to create the CSES, the -StorageAccount is necessary. You can check the parameters pairs in the second reference documentation.   

Reference doc:  

Deploy a Cloud Service (extended support) - PowerShell | Microsoft Docs 

New-AzCloudService (Az.CloudService) | Microsoft Docs 

 

  • Update config file of existing cloud service (extended support)
    $cloudServiceName="csesportal" 
    $resourceGroupName="CLOUDSERVICE2-MIGRATED" 
    $cspkgUrl = "cspkg SAS URL" 
    $cscfgContent='configuration file content' 
    $cloudService = Get-AzCloudService -Name $cloudServiceName -ResourceGroupName $resourceGroupName  
    $cloudService.PackageUrl = $cspkgUrl 
    $cloudService.Configuration = $cscfgContent 
    
    $cloudService | Update-AzCloudService   

Important:

  • Make sure you use the cscfg file which can match the cscdef in the cspfk file. 

Note:

  • Sample for value of $cscfgContent 
    $cscfgContent='<ServiceConfiguration serviceName="cses" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="6" osVersion="*" schemaVersion="2015-04.2.6"> 
      <Role name="WebRole1"> 
        <Instances count="1" /> 
        <ConfigurationSettings> 
          <Setting name="APPINSIGHTS_INSTRUMENTATIONKEY" value="133f35ff-efad-4518-9f8b-6a7f7b1438e1" /> 
        </ConfigurationSettings> 
      </Role> 
      <NetworkConfiguration> 
        <VirtualNetworkSite name="VNet-cloudservice2" /> 
        <AddressAssignments> 
          <InstanceAddress roleName="WebRole1"> 
            <Subnets> 
              <Subnet name="DefaultVNetSubnet" /> 
            </Subnets> 
          </InstanceAddress> 
        </AddressAssignments> 
      </NetworkConfiguration> 
    </ServiceConfiguration>' 

Reference doc: 

Update-AzCloudService (Az.CloudService) | Microsoft Docs 

 

  • Enable extension on the cloud service (extended support) 
    • Enable the Remote Desktop extension .
      # Create new RDP extension object   
      $credential = Get-Credential   
      $expiration='10/30/2021'   
      $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name "RDPextension" -Credential $credential -Expiration $expiration -TypeHandlerVersion "1.2.1"  
      $cloudService = Get-AzCloudService -ResourceGroup "CLOUDSERVICE2-MIGRATED" -CloudServiceName "csesportal" 
      # Add RDP extension to existing cloud service extension object   
      $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension + $rdpExtension   
      
      # Update cloud service   
      $cloudService | Update-AzCloudService  

Reference doc: 

Apply the Windows Azure diagnostics extension in Cloud Services (extended support) | Microsoft Docs 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2895585%22%20slang%3D%22en-US%22%3ECloud%20Service%20(extended%20support)%20management%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2895585%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20the%20CSES%26nbsp%3Bworld%2C%26nbsp%3Busers%26nbsp%3Busually%26nbsp%3Bneed%26nbsp%3Bto%20manage%26nbsp%3Bcloud%26nbsp%3Bservice%20(extended%20support)%26nbsp%3Bvia%26nbsp%3BPowerShell%2C%20since%26nbsp%3Bsome%20management%20operations%20are%20not%20available%20in%20portal%26nbsp%3Bso%20far.%26nbsp%3BThis%20blog%26nbsp%3Bprovides%26nbsp%3Bsome%26nbsp%3Bcommon%26nbsp%3Bsamples%26nbsp%3Bto%20manage%26nbsp%3Bcloud%20service%20(extended%26nbsp%3Bsupport)%20resources%26nbsp%3Bby%20PowerShell.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFollowing%26nbsp%3Bperspectives%26nbsp%3Bwill%26nbsp%3Bbe%20introduced%26nbsp%3Bin%20this%20blog%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20data-contrast%3D%22auto%22%3EEnvironment%26nbsp%3Bpreparation%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-contrast%3D%22auto%22%3ECSES%20creation%26nbsp%3Bvia%26nbsp%3BPowerShell%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-contrast%3D%22auto%22%3ECSES%20updating%20via%26nbsp%3BPowerShell%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-contrast%3D%22auto%22%3EEnable%20CSES%26nbsp%3BRDP%26nbsp%3Bextension%20via%26nbsp%3BPowerShell%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A720%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EPrepare%20environment%26nbsp%3B%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22list-style-type%3A%20none%3B%22%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%223%22%20data-aria-level%3D%221%22%3E%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20engineers%26nbsp%3Bor%26nbsp%3Bcustomers%26nbsp%3Bencounter%26nbsp%3Bsimilar%26nbsp%3Bfollowing%26nbsp%3Berror%2C%20it%20may%20be%20because%20the%20module%20isnot%20successfully%20installed%20or%20there%20is%20some%20issue%20with%20this%20version%20of%26nbsp%3Bmodule.%26nbsp%3BWe%20can%20install%2Funinstall%20the%20Az%20module.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-circle%22%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%222%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EInstall-Module%20-Name%20Az%20%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%222%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EUninstall-Module%20-Name%20Az%20-AllVersions%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EReference%26nbsp%3Bdoc%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazure%2Finstall-az-ps%3Fview%3Dazps-6.5.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EInstall%20the%20Azure%20Az%20PowerShell%20module%20%7C%20Microsoft%20Docs%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fazure%2Funinstall-az-ps%3Fview%3Dazps-6.5.0%23uninstall-the-az-module%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EUninstall%20Azure%20PowerShell%20%7C%20Microsoft%20Docs%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ECreate%20a%20new%20cloud%20service%20(extended%20support)%26nbsp%3B%3C%2FSTRONG%3E%3CUL%20class%3D%22lia-list-style-type-circle%22%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%222%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW208622921%20BCX0%22%3ECreate%26nbsp%3BCSES%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW208622921%20BCX0%22%3Ewith%20local%20files.%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%24cspkgFilePath%20%3D%22C%3A%5CSE%5CCloudservice%5Ccses-cscfgfile.cspkg%22%20%0A%24cscfgFilePath%20%3D%20%22C%3A%5CSE%5CCloudservice%5Ccses-cscfgfile.cscfg%22%20%0A%24csdefFilePath%20%3D%20%22C%3A%5CSE%5CCloudservice%5Ccses-csdeffile.csdef%22%20%0A%24storageAccount%3D%20%22storageacc4cses%22%20%20%20%20%20%20%0A%20%0A%23%20Create%20Cloud%20Service%20%20%20%20%0ANew-AzCloudService%20-Name%20%22blog2ps-cses2%22%20-ResourceGroupName%20%22cloudservice2-Migrated%22%20-Location%20%22WestUS%22%20-ConfigurationFile%20%24cscfgFilePath%20-DefinitionFile%20%24csdefFilePath%20-PackageFile%20%24cspkgFilePath%20-StorageAccount%20%24storageAccount%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%222%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3ECreate%3CSPAN%3E%26nbsp%3BCSES%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3Ewith%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW241578409%20BCX0%22%3Ecspkg%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3Efile%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3Efrom%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3Ethe%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3Estorage%20account%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%24cspkgUrl%20%3D%20%22cspkg%20SAS%20URL%22%20%0A%24cscfgFilePath%20%3D%20%22C%3A%5CSE%5CCloudservice%5Ccses-cscfgfile.cscfg%22%20%0A%24csdefFilePath%20%3D%20%22C%3A%5CSE%5CCloudservice%5Ccses-csdeffile.csdef%22%20%0A%0ANew-AzCloudService%20-Name%20%22blog2ps-cses2%22%20-ResourceGroupName%20%22cloudservice2-Migrated%22%20-Location%20%22WestUS%22%20-ConfigurationFile%20%24cscfgFilePath%20-DefinitionFile%20%24csdefFilePath%20-PackageUrl%20%24cspkgUrl%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CU%3ENote%3A%26nbsp%3B%3C%2FU%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20the%20Azure%20portal%2C%20you%20can%20generate%20SAS%20URL%20from%20the%20storage%20account%20container.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_0-1635426044269.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320822i7C8F595DF6E359BD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yiyang2_0-1635426044269.png%22%20alt%3D%22yiyang2_0-1635426044269.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CU%3EImportant%3A%26nbsp%3B%3C%2FU%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%222%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW208622921%20BCX0%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW241705645%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3EMake%20sure%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3Ethe%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW241705645%20BCX0%22%3Ecscfg%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3Efile%20you%20used%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3Ecan%20match%20the%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW241705645%20BCX0%22%3Ecsdef%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3E%26nbsp%3Bin%20the%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW241705645%20BCX0%22%3Ecspkg%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241705645%20BCX0%22%3E%26nbsp%3Bfile.%20Even%20when%20you%20meet%20the%20following%20message%2C%20it%20still%20may%20because%20you%20use%20the%20unmatched%20files.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW241705645%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E.%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3C%2FSPAN%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EAz.CloudService%5CNew-AzCloudService%20%3A%20The%20CSCFG%20could%20not%20be%20parsed.%20Please%20use%20the%20documentation%20at%20https%3A%2F%2Faka.ms%2Fcses-cscfg-schema%20for%20CSCFG%20schema%20details.%20%20%0A%0AMore%20details%3A%20Top-level%20XML%20element%20does%20not%20conform%20to%20schema%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%222%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW29551768%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3EExcept%20the%20above%20two%20samples%2C%20y%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3Eou%20can%20use%20the%20New-%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW29551768%20BCX0%22%3EAzCloudService%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ecommand%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20AdvancedProofingIssueV2%20SCXW29551768%20BCX0%22%3Edifferent%20groups%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eof%20parameters.%20And%20you%20need%20to%20make%20sure%20that%20the%20pair%20of%20parameters%20is%20correct.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3ESuch%20like%20when%20you%20use%20the%20local%20file%20to%20create%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW29551768%20BCX0%22%3ECSES%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3E%2C%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20SCXW29551768%20BCX0%22%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW29551768%20BCX0%20DefaultHighlightTransition%22%3EStorageAccount%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20SCXW29551768%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20necessary.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3EYou%20can%20check%20the%20parameters%20pairs%20in%20the%20second%20refer%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3Eence%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edocumentation.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW29551768%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EReference%26nbsp%3Bdoc%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcloud-services-extended-support%2Fdeploy-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EDeploy%20a%20Cloud%20Service%20(extended%20support)%20-%20PowerShell%20%7C%20Microsoft%20Docs%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.cloudservice%2Fnew-azcloudservice%3Fview%3Dazps-6.5.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3ENew-AzCloudService%26nbsp%3B(Az.CloudService)%20%7C%20Microsoft%20Docs%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A360%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-disc%22%3E%0A%3CLI%3E%3CSTRONG%3EUpdate%26nbsp%3Bconfig%20file%20of%26nbsp%3Bexisting%20cloud%20service%20(extended%20support)%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%24cloudServiceName%3D%22csesportal%22%20%0A%24resourceGroupName%3D%22CLOUDSERVICE2-MIGRATED%22%20%0A%24cspkgUrl%20%3D%20%22cspkg%20SAS%20URL%22%20%0A%24cscfgContent%3D'configuration%20file%20content'%20%0A%24cloudService%20%3D%20Get-AzCloudService%20-Name%20%24cloudServiceName%20-ResourceGroupName%20%24resourceGroupName%20%20%0A%24cloudService.PackageUrl%20%3D%20%24cspkgUrl%20%0A%24cloudService.Configuration%20%3D%20%24cscfgContent%20%0A%0A%24cloudService%20%7C%20Update-AzCloudService%20%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CU%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW241578409%20BCX0%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW29551768%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW29551768%20BCX0%22%3EImportant%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FU%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%222%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW172737432%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW172737432%20BCX0%22%3EMake%20sure%20you%20use%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW172737432%20BCX0%22%3Ecscfg%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW172737432%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20which%20can%20match%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW172737432%20BCX0%22%3Ecscdef%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW172737432%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ein%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SCXW172737432%20BCX0%22%3Ecspfk%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW172737432%20BCX0%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW172737432%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CU%3ENote%3A%3C%2FU%3E%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-disc%22%3E%0A%3CLI%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW253277094%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW253277094%20BCX0%22%3ESample%20for%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW253277094%20BCX0%22%3Evalue%20of%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22TextRun%20SCXW253277094%20BCX0%22%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW253277094%20BCX0%22%3E%24%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SpellingErrorV2%20SpellingErrorHighlight%20SCXW253277094%20BCX0%22%3EcscfgContent%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW253277094%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A720%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%24cscfgContent%3D'%3CSERVICECONFIGURATION%20servicename%3D%22cses%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2FServiceHosting%2F2008%2F10%2FServiceConfiguration%22%20osfamily%3D%226%22%20osversion%3D%22*%22%20schemaversion%3D%222015-04.2.6%22%3E%20%0A%20%20%3CROLE%20name%3D%22WebRole1%22%3E%20%0A%20%20%20%20%3CINSTANCES%20count%3D%221%22%3E%3C%2FINSTANCES%3E%20%0A%20%20%20%20%3CCONFIGURATIONSETTINGS%3E%20%0A%20%20%20%20%20%20%3CSETTING%20name%3D%22APPINSIGHTS_INSTRUMENTATIONKEY%22%20value%3D%22133f35ff-efad-4518-9f8b-6a7f7b1438e1%22%3E%3C%2FSETTING%3E%20%0A%20%20%20%20%3C%2FCONFIGURATIONSETTINGS%3E%20%0A%20%20%3C%2FROLE%3E%20%0A%20%20%3CNETWORKCONFIGURATION%3E%20%0A%20%20%20%20%3CVIRTUALNETWORKSITE%20name%3D%22VNet-cloudservice2%22%3E%3C%2FVIRTUALNETWORKSITE%3E%20%0A%20%20%20%20%3CADDRESSASSIGNMENTS%3E%20%0A%20%20%20%20%20%20%3CINSTANCEADDRESS%20rolename%3D%22WebRole1%22%3E%20%0A%20%20%20%20%20%20%20%20%3CSUBNETS%3E%20%0A%20%20%20%20%20%20%20%20%20%20%3CSUBNET%20name%3D%22DefaultVNetSubnet%22%3E%3C%2FSUBNET%3E%20%0A%20%20%20%20%20%20%20%20%3C%2FSUBNETS%3E%20%0A%20%20%20%20%20%20%3C%2FINSTANCEADDRESS%3E%20%0A%20%20%20%20%3C%2FADDRESSASSIGNMENTS%3E%20%0A%20%20%3C%2FNETWORKCONFIGURATION%3E%20%0A%3C%2FSERVICECONFIGURATION%3E'%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW1214837%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW1214837%20BCX0%22%3EReference%20doc%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20class%3D%22Hyperlink%20SCXW1214837%20BCX0%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.cloudservice%2Fupdate-azcloudservice%3Fview%3Dazps-6.4.0%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3E%3CSPAN%20class%3D%22TextRun%20Underlined%20SCXW1214837%20BCX0%22%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW1214837%20BCX0%22%20data-ccp-charstyle%3D%22Hyperlink%22%3EUpdate-%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW1214837%20BCX0%22%20data-ccp-charstyle%3D%22Hyperlink%22%3EAzCloudService%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW1214837%20BCX0%22%20data-ccp-charstyle%3D%22Hyperlink%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW1214837%20BCX0%22%20data-ccp-charstyle%3D%22Hyperlink%22%3EAz.CloudService%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW1214837%20BCX0%22%20data-ccp-charstyle%3D%22Hyperlink%22%3E)%20%7C%20Microsoft%20Docs%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20class%3D%22EOP%20SCXW1214837%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A720%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20class%3D%22TextRun%20SCXW39768422%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW39768422%20BCX0%22%3EEnable%20extension%20on%20the%20cloud%20service%20(extended%20support)%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW39768422%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%20%3C%2FSTRONG%3E%3CUL%20class%3D%22lia-list-style-type-circle%22%3E%0A%3CLI%20data-leveltext%3D%22o%22%20data-font%3D%22Courier%20New%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%222%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1080%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW208622921%20BCX0%22%3E%3CSPAN%20class%3D%22TextRun%20SCXW157152234%20BCX0%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20SCXW157152234%20BCX0%22%3EEnable%20the%20Remote%20Desktop%20extension%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20SCXW157152234%20BCX0%22%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E.%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%23%20Create%20new%20RDP%20extension%20object%20%20%20%0A%24credential%20%3D%20Get-Credential%20%20%20%0A%24expiration%3D'10%2F30%2F2021'%20%20%20%0A%24rdpExtension%20%3D%20New-AzCloudServiceRemoteDesktopExtensionObject%20-Name%20%22RDPextension%22%20-Credential%20%24credential%20-Expiration%20%24expiration%20-TypeHandlerVersion%20%221.2.1%22%20%20%0A%24cloudService%20%3D%20Get-AzCloudService%20-ResourceGroup%20%22CLOUDSERVICE2-MIGRATED%22%20-CloudServiceName%20%22csesportal%22%20%0A%23%20Add%20RDP%20extension%20to%20existing%20cloud%20service%20extension%20object%20%20%20%0A%24cloudService.ExtensionProfile.Extension%20%3D%20%24cloudService.ExtensionProfile.Extension%20%2B%20%24rdpExtension%20%20%20%0A%0A%23%20Update%20cloud%20service%20%20%20%0A%24cloudService%20%7C%20Update-AzCloudService%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EReference%26nbsp%3Bdoc%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1440%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcloud-services-extended-support%2Fenable-wad%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EApply%20the%20Windows%20Azure%20diagnostics%20extension%20in%20Cloud%20Services%20(extended%20support)%20%7C%20Microsoft%20Docs%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559685%26quot%3B%3A1440%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2895585%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20blog%20will%20introduce%20how%20to%20use%20PowerShell%20command%20to%20manage%20cloud%20service(extended%20support)%20resources.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Oct 28 2021 07:03 AM
Updated by: