Azure Powershell website cmdlet's not working correctly on server -
i setting deployment of azure website on build server running server 2012.
i first tried deploy local machine using following steps (and worked):
- install azure powershell using wpi
- use
get-azurepublishsettingsfile
command ,import-azurepublishsettingsfile
access azure websites etc powershell - run command
get-azurewebsites
, see list of websites - run
publish-azurewebsiteproject
publish package website
all above works. however, when follow same steps on server, when get-azurewebsites
step, nothing back. follow on this, when try , run publish command, "website not exist" error.
if run get-azureaccount
, get-azuresubscription
commands, correct account / subscriptions.
i have no idea going on?!
check if there more 1 azure subscriptions on server. if there more, make sure subscription need set default. use command:
select-azuresubscription -default 'subscription name'
... set default subscription.
Comments
Post a Comment