user1335978
user1335978

Reputation: 193

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

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?

Upvotes: 0

Views: 158

Answers (1)

Joy Wang
Joy Wang

Reputation: 42123

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

Upvotes: 2

Related Questions