# Powershell import to the azure Module
Import-module azure
# Import publishsettings
Import-azurepublishsettingsfile Yourfile. publishsettings
# View subscription details
Get-azuresubtasks
# Delete subscription
Remove-azuresubpipeline-subscriptionname "sub name"
# Modify subscription
Set-azuresubpartition-subscriptionname "sub name"-currentstorageaccount "Storage name"
# Creating and deploying cloud service
New-azuredeployment-servicename $ servicename-package $ package-configuration $ configuration-slot $ slot-label "deployed on $ date"
-ServicenameName of cloudservice
-PackageCompiled local (remote) package to be uploaded
-ConfigurationLocal (remote) configuration file to be uploaded
-SlotDeployment location: production or staging
-LabelDetailed description
# Overwrite cloud service deployment
Set-azuredeployment-upgrade-servicename $ servicename-force-package $ package-configuration $ configuration-slot $ slot-label "upgrade on $ date"
This article is from the "Cloud" blog and will not be reposted!