azure-resource-manager

How to output secret uri in ARM template?

隐身守侯 提交于 2020-08-03 02:29:20
问题 I am unable to output the secret URI from my secret resource in my ARM template. Any ideas on how to do that? 回答1: If you mean you want to have it from the KeyVault, try this: "outputs":{ "mySecretUri": { "type": "string", "value": "[reference(resourceId('Microsoft.KeyVault/vaults/secrets', parameters('keyVaultName'), parameters('mySecretName'))).secretUri]" } } 回答2: In my case the secret is a generated value which changes with every ARM deployment. This requires the specification of the

How to output secret uri in ARM template?

爷,独闯天下 提交于 2020-08-03 02:28:14
问题 I am unable to output the secret URI from my secret resource in my ARM template. Any ideas on how to do that? 回答1: If you mean you want to have it from the KeyVault, try this: "outputs":{ "mySecretUri": { "type": "string", "value": "[reference(resourceId('Microsoft.KeyVault/vaults/secrets', parameters('keyVaultName'), parameters('mySecretName'))).secretUri]" } } 回答2: In my case the secret is a generated value which changes with every ARM deployment. This requires the specification of the

How to output secret uri in ARM template?

穿精又带淫゛_ 提交于 2020-08-03 02:27:19
问题 I am unable to output the secret URI from my secret resource in my ARM template. Any ideas on how to do that? 回答1: If you mean you want to have it from the KeyVault, try this: "outputs":{ "mySecretUri": { "type": "string", "value": "[reference(resourceId('Microsoft.KeyVault/vaults/secrets', parameters('keyVaultName'), parameters('mySecretName'))).secretUri]" } } 回答2: In my case the secret is a generated value which changes with every ARM deployment. This requires the specification of the

How can I get the list of Azure Regions in C#?

∥☆過路亽.° 提交于 2020-07-23 18:08:28
问题 The Azure SDK for Java has an enum with all of the Azure locations, public and national. Is there similar functionality available for C#? It would be cleaner than using strings. 回答1: Is there similar functionality available for C#? Yes, please refer to Microsoft.Azure.Management.ResourceManager.Fluent, we could get source code from github. More details please refer to screenshot. demo code: string region = Region.AsiaEast.ToString(); 来源: https://stackoverflow.com/questions/44770406/how-can-i

How can I get the list of Azure Regions in C#?

余生颓废 提交于 2020-07-23 18:06:50
问题 The Azure SDK for Java has an enum with all of the Azure locations, public and national. Is there similar functionality available for C#? It would be cleaner than using strings. 回答1: Is there similar functionality available for C#? Yes, please refer to Microsoft.Azure.Management.ResourceManager.Fluent, we could get source code from github. More details please refer to screenshot. demo code: string region = Region.AsiaEast.ToString(); 来源: https://stackoverflow.com/questions/44770406/how-can-i

How to convert an array into properties of one object in an ARM template?

冷暖自知 提交于 2020-07-08 03:41:36
问题 The bounty expires in 7 days . Answers to this question are eligible for a +50 reputation bounty. hansmbakker wants to draw more attention to this question: Knowing how to achieve the asked functionality (array transformation to properties of a single object) will give more freedom in writing ARM templates, so the use case is just an example. There can be other valid cases. Please still read the use case and the asked result. I am looking for a way to convert an array (e.g. of strings) into

Does Service Fabric application deployment fail, because the certificate does not have a password?

微笑、不失礼 提交于 2020-06-29 05:06:17
问题 I have an Azure pipeline, which works pretty well with a self-signed certificate: It deploys (via ARM templates) Redis, CosmosDB, EventHub, Keyvault, then imports the self-signed certificate into the Keyvault, then deploys SF cluster and configures it with the certificate. Finally the pipeline deploys our team's application with the following task: - task: ServiceFabricDeploy@1 displayName: 'Deploy SF app' inputs: applicationPackagePath: '$(Build.BinariesDirectory)\Release\Applications

Get Subscriptions from Azure tenant using multi-tenant application

荒凉一梦 提交于 2020-06-28 06:24:12
问题 I'm trying to build a multi-tenant application to retrieve all subscription information from my personal account. Using the Powershell ARM I'm able to retrieve this information: However, when trying to do this action using the azure management API: https://management.azure.com/subscriptions?api-version=2016-06-01 Using a JWT generated using my tenant, application id and key secret it returns the following: {"value": [] } My application permissions seem fine: Am I missing something from my