azure-cli

Azure CLI Create AD App with AllowImplicit

我的梦境 提交于 2019-12-11 15:47:18
问题 Is there any way that I can create or modify an AzureAD App to allow the OAuth 2.0 Implicit flow via the Azure CLI 2.0? I'm able to create app registrations without issue using az ad app create 回答1: It does not look like the Azure CLI 2.0 exposes the OAuth2AllowImplicitFlow property to be set, however the Azure Active Directory PowerShell 2.0 does expose this property: -Oauth2AllowImplicitFlow Specifies whether this web application can request OAuth2.0 implicit flow tokens. The default is

AuthenticationFailedInvalidHeader when using the Azure API Management REST API

喜欢而已 提交于 2019-12-11 14:54:42
问题 I'm willing to log stuff from my Azure Api Management into an eventhub using policies. I'm following this documentation : https://docs.microsoft.com/en-us/rest/api/apimanagement/logger/createorupdate Here is my HTTP Request (using Postman): PUT /subscriptions/3f0a0802-0a42-4a73-82b2-094d41acd70a/resourceGroups/GRP-Poc-BilanHydrique/providers/Microsoft.ApiManagement/service/WaterBalance/loggers/end-user-logger?api-version=2017-03-01 HTTP/1.1 Host: management.azure.com Authorization: {my token}

Unable to run tasks on Azure Batch:Nodes go into unusable state after starting-up

混江龙づ霸主 提交于 2019-12-11 12:47:19
问题 I am trying to parallelize a Python App using Azure Batch.The workflow that I have followed in the Python client-side script is: 1) Upload Local files to Azure Blob Container using blobxfer utility (input-container) 2) Start Batch service to Process the files in input-container after logging in using the service principal account with azure-cli. 3) Upload the files to output-container through the python app distributed across the Nodes with Azure Batch. I am experiencing a problem very

How can I programmatically obtain the DirectLine secret of a Microsoft Bot Framework chatbot application?

走远了吗. 提交于 2019-12-11 12:09:28
问题 I'm trying to automate the process of creation and deploy of chatbot applications using the Microsoft Bot Framework and the Azure Bot Service . I have a custom template that speaks to a service of mine, and I just need to customize the Web.config file for each chatbot to be deployed. I also want to use the default.htm to host a basic web chat that uses the DirectLine secret of the deployed chatbot. I was able to create a WebApp Chatbot application using the Azure CLI 2.0 , as well as

Get Azure API Management SKU using REST API

笑着哭i 提交于 2019-12-11 09:49:54
问题 I'm trying to get api management sku condition using REST API but it doesn't work by occuring 401 Unauthorized error. However, I verified that the SAS is valid by trying to execute other API Management REST API. I have no idea, please help me. *API URL=https://management.azure.com/subscriptions/mysubid/resourceGroups/myrg/providers/Microsoft.ApiManagement/service/myservice API_VER=2017-03-01 SAS="**Generate by APIM Publisher portal**" curl -i GET "$URL?api-version=$API_VER" -H "Authorization:

Azure Function App - trying to publish to a v1 function app from v2 tooling

纵然是瞬间 提交于 2019-12-11 06:47:33
问题 I've created and successfully tested a Function App. It requires the .net Framework because of a legacy library, and is set to use run-time version ~1. Publishing directly from Visual Studio 2017 using the publishing profile works normally. However, attempting to publish with the Azure CLI is giving me grief. Following the MS article here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function-azure-cli azure-cli v2.0.64 azure-functions-core-tools@2.7

To create the Log Analytics alerts using Azure Power Shell or Azure CLI

走远了吗. 提交于 2019-12-11 06:07:55
问题 I'm trying to create alerts in LogAnlytics in azure portal, need to create 6 alerts for 5 db's, so have to create 30 alerts manually and is time consuming. Hence would require an automated approach. Tried to create via Creating Alerts Using Azure PowerShell, but this creates the alerts in the Alerts Classic under Monitor but this is not what is required, require it to be created in Log Analytics. Next approach was via Create a metric alert with a Resource Manager template but this was metric

Azure acs ssh login keeping failing with “permission denied (public key)”

帅比萌擦擦* 提交于 2019-12-11 00:35:08
问题 I have successfully deployed a mesos cluster on azure container service using article deploy an container service cluster. I used azure cli on OS X for creating the cluster. As part of the process I created a new ssh key pair: ssh-keygen -t rsa -b 2048 After deployment went successful I'm trying to ssh into the end point but receiving "Permission Denied (Public Key)" ssh -L 80:localhost:80 -N azureuser@xyz.eastus2.cloudapp.azure.com -p 2200 -v The verbose [not all but last few lines] debug1:

listKeys for Azure function app

有些话、适合烂在心里 提交于 2019-12-09 01:49:06
问题 How do I list the keys of an azure function app using the listKeys ARM function? My template: { "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "resources": [], "outputs": { "referenceOutput": { "type": "object", "value": "[listkeys(resourceId('Microsoft.Web/sites/functions', 'my-function-app','my-function'),'2016-08-01').key]" } } And then run with: az group deployment create -g my-rg --template-file

Create SQL Server via Azure Resource Manager (ARM) template

核能气质少年 提交于 2019-12-07 06:50:40
问题 I am trying to create a new Azure instance of SQL Server in which I would like to then create a few new databases. I know from the Azure Portal that some sort of admin users could be: an SA user (I think this means "Server Admin" and it looks like some sort of old way of managing a SQL Server instance, but at the same time very "basic" and proved to work) an Active Directory user (not sure about Azure terminology here, but it looks like this could be some "broad user" for the whole Azure