taka
taka

Reputation: 3

How to create Azure site specify resource group using azure-cli

With this reference, https://learn.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

Upvotes: 0

Views: 174

Answers (1)

Shui shengbao
Shui shengbao

Reputation: 19195

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.

Upvotes: 0

Related Questions