#powershell导入Azure模块
Import-Module Azure
#导入publishsettings
Import-AzurePublishSettingsFile yourfile.publishsettings
#查看订阅详细信息
Get-AzureSubscription
#删除订阅
Remove-AzureSubscription -SubscriptionName "sub name"
#修改订阅
Set-AzureSubscription -SubscriptionName "sub name" -CurrentStorageAccount "storage name"
#新建部署Cloud Service
New-AzureDeployment -ServiceName $ServiceName -Package $Package -Configuration $Configuration -Slot $Slot -Label "Deployed on $date"
-ServiceName CloudService的对应名称
-Package 要上传的本地(远程)的编译好的包
-Configuration 要上传的本地(远程)的配置文件
-Slot 部署的位置:production或staging
-Label 详细描述信息
#覆盖部署Cloud Service
Set-AzureDeployment -Upgrade -ServiceName $ServiceName -Force -Package $Package -Configuration $Configuration -Slot $Slot -Label "Upgrade on $date"
PowerShell Azure 常用命令,布布扣,bubuko.com