how to read service configuration (.cscfg) of a cloud service created on RM subscription

149 views Asked by At

I have a cloud service (classic) created on RM subscription. I need to read its service config (.cscfg), update the config and redrploy it back to the cloud service.

I did it using get-azuredeploy command on Classic, but this command doesnt work on RM subscription.

does anyone know how to get service config from RM subscription?

1

There are 1 answers

0
Joy Wang On BEST ANSWER

Try the command below, the $slot.Properties.configuration should be that.

$slot = Get-AzureRmResource -ResourceGroupName <ResourceGroupName> -ResourceType Microsoft.ClassicCompute/domainNames/slots -ResourceName "xxxxx" -ApiVersion 2016-04-01
$slot.Properties.configuration