AzureDeploy | ARM templates for Azure | Azure library
kandi X-RAY | AzureDeploy Summary
kandi X-RAY | AzureDeploy Summary
ARM templates for Azure
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AzureDeploy
AzureDeploy Key Features
AzureDeploy Examples and Code Snippets
Community Discussions
Trending Discussions on AzureDeploy
QUESTION
My release pipeline fails on task AzureResourceGroupDeployment@2 with error:
Error: Could not find any file matching the template file pattern
Here is the yaml code:
...ANSWER
Answered 2022-Feb-08 at 22:47Figured it out. I needed to add "build/" to the path:
QUESTION
I am bit struggling to understand this Azure ARM template containing multiple "Microsoft.Compute/virtualMachines/extensions" and multiple VMs:
kafka-on-ubuntu/azuredeploy.json
Assuming there will be 4 VMs: 1 for zookeeper and 3 for Kafka cluster repsectively, how can be ensured that the extension (+script) for Zookeper will run on exactly that one Zookeper VM, and how to ensure that the extension (+script ) for Kafka cluster will run on exactly those 3 Kafka VMs? I am more tempted to believe that each extension run on all VMs.
...ANSWER
Answered 2022-Feb-08 at 11:01This behavior seems to be poorly documented, but from the documentation page for the Windows custom script extension:
The name of the resource has to be in the format virtualMachineName/extensionName, if this extension is used as a standalone resource in the Azure Resource Manager template.
Which seems to imply that the resolution for where the custom script extension should be executed is based on the name. I imagine this is the case for Linux VMs too.
For the particular example that you are looking at, the name of one of the vms is:
QUESTION
I need to check that all files in folders with the naming ".policy" is ether 'azureDeploy.parameters.json' or 'azureDeploy.json'
if i only want it to check one folder i just give the full path as here:
...ANSWER
Answered 2021-Oct-27 at 14:00You could specify 'only files in folders named X' with Where-Object
on the Directory
property:
QUESTION
I am running ARM TTK as one of the tasks in my Azure DevOps Pipeline for validating ARM Templates before a PR is merged. One of the tests that i am using is : Location Should Not Be Hardcoded which is mentioned in the link : ARM-TTK-Tests by the name of "Location Uses Parameter"
My ARM Template name is not "azuredeploy.json" or "mainTemplate.json" . My ARM Template name is "winvm-arm.json". I have the location defined in parameters like shown below :
...ANSWER
Answered 2021-Oct-04 at 10:36Thank you Brian Moore. Posting your suggestion as an answer to help other community members.
this is because anything that is not the "main template" is assumed to be a nested template... main template is determined by the filename (unless you specify otherwise).
I think short term you'll have to follow the pattern - until we have a more standard way of determining name / nested.
You can refer to "Location Should Not Be Hardcoded" test catching errors in good templates
QUESTION
I am creating cosmos DB using ARM template.in that my collection may or maynot have autoscale settings for the one which has autoscale I want to set autoscale max throughputfor others I want to enter standard throughput. when my throughput is null the template picks the maxthroughput but when the autoscale max through put is null, it throws it's not able to convert to integer.
here is the working one:
...ANSWER
Answered 2021-Sep-09 at 15:57You need to extract the autoscalesettings
into a dedicated variable and conditionally include that in the template depending on your parameters.
Full example: https://mattfrear.com/2020/06/17/conditionally-specify-a-property-in-an-arm-template/
Rough sketch on how this could look like (probably contains some small errors).
QUESTION
In ARM templates, we configure multiple properties for a resource. For example for AKS - (taken from AKS Quickstart template)
...ANSWER
Answered 2021-Jun-22 at 17:56You can find the relevant documentation in the ManagedClusterProperties object
The trick here is to get the resource name and you can find the relevant documentation from the ARM documentation by mapping the reosurce
QUESTION
Is this possible to deploy stored procedure or user defined function together with Azure CosmosDB SQL API using bicep?
I know that is possible using directly arm template: https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.documentdb/cosmosdb-sql-container-sprocs/azuredeploy.json
I have not found any docs regarding doing this in biceps, but I tried doing it on my own. I tried to build bicep resource the same way like any other e.g. container, but I always have exceptions e.g:
...ANSWER
Answered 2021-May-20 at 17:17I have an example here that I built decompiling the arm template sample you showed into bicep.
I have not yet had a chance to complete the PR I have on this updated sample but this will get published where the ARM template you pointed to lives. But if you need an example that works to unblock you this is what you need.
UPDATE: Apologies for the empty bicep file. Not sure how that happened.
To get an example of how to deploy a UDF using bicep you can take the ARM template located here and then pass it to bicep's decompile function. Example below.
QUESTION
Hello Azure Container guru's
I'am trying to configure the following Azure Container Setup:
My first step (for simplicity) is the creation off 2 containers within a single container group on azure (without the fileshare). I create the following Azure Resource Manager template to create the ACI
I am using here fore the following blog
- https://markheath.net/post/aci-container-groups-wordpress
- https://github.com/Azure/azure-quickstart-templates/tree/master/201-aci-wordpress
ARM TEMPLATE
...ANSWER
Answered 2021-Apr-09 at 07:56There are some mistakes in your ARM template such as the value of WORDPRESS_DB_HOST
should be "127.0.0.1:3306"
instead of "127.0.0.0:3306"
and the port number should be "port": 3306
instead of "port": "3306"
. Also, the image wordpress does not work for me, instead, using the image wordpress:4.9-apache
works.
Sample
QUESTION
I have a JSON deployment template with something like:
...ANSWER
Answered 2021-Apr-01 at 02:15You can use the function reference()
to get the output in the link template:
QUESTION
Can you please help me with below.
I am building Azure Function app V3 and using Azure Devops YAML pipeline to build and deploy Azure function app and ARM infra to Dev environment. Now I want to deploy the same to UAT. I am not sure how to have different environment using YAML.
please find my azure-pipeline.yml
file that I am using
ANSWER
Answered 2021-Mar-17 at 13:49You just need to add another stage with some conditions for the deployment to Test environment.
Normally, you can set up a multi-stage pipeline that contains the main processes for your application, such as "Build", "Test" and "Deploy". And like release pipeline, you also can set a stage for each deployment environment in the same pipeline.
In your case, if you want that when new changes occur on the UAT branch, the deployment to Test environment can be triggered, you can set the condition like as below on the stage for Test environment.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AzureDeploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page