azure-cli

How do I install .NET Core in the Azure CLI shared folder?

╄→гoц情女王★ 提交于 2020-04-30 06:29:11
问题 I need to update the .NET Core version for use with Azure Functions. The dotnet command shows that the highest version available is 2.2.402. Checking in the Azure Portal CLI, the .NET Core files are installed in usr/share/dotnet/sdk . I can install .NET Core v3.1.0.2 on my Windows 10 PC, but I can't see how to install into the share/dotnet/sdk folder so that the global.json can reference this version of .NET Core. After installing .NET Core on Windows 10 on the c:\ drive: PS /home/username>

How to create a Linux AppService Plan with New-AzAppServicePlan?

℡╲_俬逩灬. 提交于 2020-04-16 05:53:51
问题 What is the equivalient of this code using New-AzAppServicePlan ? az appservice plan create --resource-group $ServerFarmResourceGroupName ` --name $AppServicePlanName ` --is-linux ` --location $ResourceGroupLocation ` --sku $AppServicePlanTier ` --number-of-workers $NumberOfWorkers Is there really no way to create an App Service Plan using Az Powershell? Why can it only be done via Azure CLI or ARM? I only found this answer, which basically uses ARM directly: How do I use Powershell to create

Azure CLI: storage blob delete-batch to delete all blobs excluding two directories

╄→гoц情女王★ 提交于 2020-03-23 06:30:29
问题 I have a PowerShell script that currently deletes all blobs in my $web container. az storage blob delete-batch --account-name myaccountname --source $web This works great, but now I want to exclude two directories from being deleted. I've looked over the documentation and I'm still not sure how the exclusion syntax is supposed to look. I'm certain that I have to use the --pattern parameter. The pattern used for globbing files or blobs in the source. The supported patterns are '*', '?', '[seq]

Azure Resource Manager microsoft.classicstorage/storageAccounts no registered resource provider

主宰稳场 提交于 2020-03-06 10:55:07
问题 I am getting an error when Azure Resource Manager (ARM) is deploying my template on Azure. In the Resource Group events pane I get an error for the storage account creation of: statusMessage:{"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'Australia Southeast' and API version '2014-11-01'."}} I am using the Azure xPlat CLI and can confirm with the command azure location list that the storageAccounts resource is available in Australia

Azure Resource Manager microsoft.classicstorage/storageAccounts no registered resource provider

喜你入骨 提交于 2020-03-06 10:53:29
问题 I am getting an error when Azure Resource Manager (ARM) is deploying my template on Azure. In the Resource Group events pane I get an error for the storage account creation of: statusMessage:{"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'Australia Southeast' and API version '2014-11-01'."}} I am using the Azure xPlat CLI and can confirm with the command azure location list that the storageAccounts resource is available in Australia

Can we use Azure CLI to upload files to Azure Data Lake Storage Gen2

人盡茶涼 提交于 2020-02-02 16:22:09
问题 All I want to do, is to upload files from on prime to Azure Data Lake Storage Gen2 using the Azure CLI (via ` command), but have a connection error! Can I use Azure CLI to to that? Or I have to use another tool? PS: I cannot use Azure Data Factory, I want my job running from my on prime and not from the cloud! Thks. azure.datalake.store.exceptions.DatalakeRESTException: HTTP error: ConnectionError(MaxRetryError("HTTPSConnectionPool(host='storageAccount.azuredatalakestore.net', port=443): Max

Azure Logic Apps: how to run Powershell script or Azure CLI?

懵懂的女人 提交于 2020-01-30 08:05:26
问题 I'm building my Azure Logic Apps worklow which is supposed to check some conditions and run following Powershell: Stop-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob Start-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob -JobType Continuous The question is: what's the easiest way to invoke such script in Azure Logic Apps? It seems like there's no built in block/connector for Powershell so I'd like to know what are the possibilites. Or perhaps it might be easier to run az CLI command with

Issue creating Azure App Registration with AZ CLI

亡梦爱人 提交于 2020-01-24 18:25:09
问题 I am trying to create an Azure AD app with an updated manifest that has access to Windows Azure AD. I have been able to successfully create / configure a new App Registration but run into issues when i try to configure the Manifest. I have tried using the sample code provided my MS (https://docs.microsoft.com/en-us/cli/azure/ad/app?view=azure-cli-latest#az-ad-app-create) with an updated 'resourceAppId' from an already existing App Registration however bash throws an error az ad app create -

Getting the latest image tag from ACR Repository

不羁岁月 提交于 2020-01-22 02:47:05
问题 I need to fetch the latest image tag from Azure Container Registry (ACR) with a bash command in my pipeline and use that tag for container deployment. Here is what I could find with Azure cli: $ az acr repository show-tags --name myacr --repository myrepo --top 1 However this returns me the oldest tag. How can I get the latest pushed tag from ACR repo? 回答1: See this doc: az acr repository show-tags and its parameters description: Order the items in the results. Default to alphabetical order

Azure CLI aks install cli permission denied and sudo does not work

假装没事ソ 提交于 2020-01-15 05:55:08
问题 I'm trying to run az aks install-cli but I get an error that says Downloading client to "/usr/local/bin/kubectl" from "https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl" Connection error while attempting to download client ([Errno 13] Permission denied: '/usr/local/bin/kubectl') If I use sudo I get: bash: sudo: command not found Not sure how to elevate permissions other than using sudo 回答1: You do not need to install the kubectl for AKS if you use the