0
votes

With this reference, https://docs.microsoft.com/en-us/bot-framework/deploy-bot-local-git

I executed command as follows.

$ azure site create --git my-app-name

Then, an error message appeared.

info: Executing command site create error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription. error: Error information has been recorded to C:\Users\yokoyamt\.azure\azure.err error: site create command failed

I've tried in another azure account, which I have "power-user", then A new Resource group was created and the app service was deployed in it.

But in this time, I haven't enough role to create new resource group. So I guessed If I had specify resource group when I create app via azure-cli.

Can anyone put some light on this?

> az account list --output table
Name      CloudName    SubscriptionId                        State    IsDefault
--------  -----------  ------------------------------------  -------  -----------
従量課金  AzureCloud   my-subscription-id  Enabled  True
1
azure site is a classic mode(asm) command. Do you check your cli mode?Shui shengbao
I've checked cli mode and it shows "asm", but thanks anyway, I will try & use new az command from now on.taka
azure site create --git my-app-name works for me. Do you check your account azure account list. Your subscription is right?Shui shengbao
Your Azure account has subscription or multiple subscriptions?Shui shengbao
yes, I have subscription. I've just fixed question above.taka

1 Answers

0
votes

azure site is a classic(asm) mode resource, azure web is a arm mode resource. You should give your account co-admin permission in classic Portal. New Portal does not work on it. Please refer to this question.

According to your description, you want to deploy a web app on Azure. You could use Azure CLI 2.0 to do this. Please refer to this link.