resource-template | Can be used as template | Continous Integration library
kandi X-RAY | resource-template Summary
kandi X-RAY | resource-template Summary
Can be used as a template for developing a Concourse resource type.
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 resource-template
resource-template Key Features
resource-template Examples and Code Snippets
Community Discussions
Trending Discussions on resource-template
QUESTION
When I'm trying to deploy an Azure Storage resource from azure automation runbook Here is my azure run book code
...ANSWER
Answered 2019-Sep-17 at 07:59I can reproduce your issue on my side, make sure your $StorageAccountName
is lowercase. For example, in my screenshot, it should be joystoragev2
, not Joystoragev2
. Also make sure other parameters are all correct.
The second error looks was caused by the failure of the Get-AzureStorageFileContent
, if fix the first error, it should also work.
QUESTION
I have created a few ARM templates for deploying Azure metric alert rules, but I now have a requirement to deploy a log alert rule (i.e. a rule based on an Application Insights query rather than a platform metric).
I have scripted the template following the example here (which suggests I need to create a resource of type Microsoft.Insights/scheduledQueryRules
) and deployed using Azure portal's Template Deployment service as described here.
Azure reports the deployment as successful, and the activity log gives me the deployment result, including the ID of my new resource e.g. /subscriptions/[subscription-id]/resourcegroups/[alerts-resource-group]/providers/Microsoft.Insights/scheduledQueryRules/Custom errors spike alert
.
However, when I navigate to the Monitor blade in subscription [subscription-id], and filter down by resource group [alerts-resource-group] I don't see my new alert.
As a sanity check I created a metric alert using the same process targeting the same App Insights resource, and this one does show up in the Monitor blade.
I guess my question is, am I misunderstanding something about log-based alert rules? For example, does an Azure 'resource' of type Microsoft.Insights/scheduledQueryRules
equate with alert rules of signal type Log Search in Monitor / Alerts / Manage alert rules? I'm confident my template is correct because it passes validation and completed successfully. But I'm baffled about where the alert rule is ending up!
One thing I should mention is that I'm creating the alert rule in a different resource group to the App Insights instance itself, but this is also true of the metric alert so assumed this wasn't significant.
...ANSWER
Answered 2018-Nov-22 at 09:48It turns out log alerts require a hidden link to the resource they're monitoring. Otherwise they get created but not listed anywhere in the portal.
In my case I added the following variable to the template:
QUESTION
This article shows a tutorial how to deploy some resources from ARM templates in a powershell runbook. And as I understand, it will download the template and the parameters files in the specific path. But how can that work in an automated Runbook without having any directly attached storage to the automation account. Obviously, I'm misunderstanding something...
I mean the Get-AzureStorageFileContent
command:
ANSWER
Answered 2019-Mar-11 at 15:58You can use -TemplateParameterUri
and -TemplateUri
and give publicly available urls that where the tempaltes are stored.
QUESTION
I'm using Azure RM Template deployments with a Visual Studio 2017 Resource Group project to deploy IoTHub instance with diagnostics settings in Log Analytics.
Deploying IoTHub alone is successful, the problem is with deployment of the Diagnostics Settings template.
I'm following the instructions for deploying Diagnostics Settings as Non-Compute resource template
The strange error that I receive is the following:
Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template resource 'Microsoft.Insights/BasicDiagnostics' for type 'providers/diagnosticSettings' at line '69' and column '9' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name.
Why does it fail like this, even though I follow the documentation with the provided example?
Here are my template definitions:
...ANSWER
Answered 2018-Oct-17 at 07:51this needs to be a sub resource of the IOT hub, not a separate resource.
QUESTION
When deploying a linked ARM templated via a master ARM template using the New-AzureRmDeployment
commandlet, I am getting an error when trying to use the resourceGroup().name
function and property. The error message is:
ANSWER
Answered 2018-Sep-12 at 00:12I have now found the Microsoft documentation that says "The resourceGroup() function is not supported." for subscription level deployments at https://docs.microsoft.com/en-us/azure/azure-resource-manager/deploy-to-subscription#using-template-functions. The commandlet I am using is New-AzureRmDeployment
, which is used to deploy resources at the current subscription scope. Looks like I'll need to take a different approach.
QUESTION
I'm unable to deploy this NESTED template because of an Custom Script Extension (CompDesc) that I've added to it. I am prompted with the following error when trying to deploy:
Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template resource 'CompDesc' for type 'Microsoft.Compute/virtualMachines/extensions' at line '207' and column '6' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-template/#resources for usage details.'.
As you can see it already has a DSC extension which I have tested and deployed perfectly fine, but I also need to add this CSE for a small .ps1 script.
I have checked out: Azure website resource template error and Set ARM Template Web appSetting
I have tried:
- changing the
name
to 1 word - changing the
type
to 1 word - changing the
name
to[concat(parameters('vmName'),'/extension')]
- changing the
type
toMicrosoft.Compute/virtualMachines/extensions
- nested the resource inside the VM resource, and then changed the
name
andtype
to one of the varieties I've tried - removed the CSE from the VM resource and placed it on its own (as it is now shown), and then changed the
name
andtype
to one of the varieties I've tried
I know it has something to do with the naming convention, but I'm unsure on how to fix it. Bear in mind, that this is a nested template. From what I read and understand from the error, nested templates must have identical segments as its resource name, which I've tried.
Please, any ideas?
...ANSWER
Answered 2017-Nov-08 at 15:01My god, an oversight by myself. I forgot to re-upload the nested template to blob storage once I made my changes. So dumb.
Anyway, for those that want to know; https://github.com/blumu/azure-content/blob/master/articles/resource-manager-common-deployment-errors.md
QUESTION
I have an ARM template to deploy/update the full Azure infrastructure for my application. Our build server should run the template, and add/update/delete resources that are add/changed/deleted. To make this work, I have chosen for the "Complete" deployment mode.
To test the ARM template, I have to following power shell script:
...ANSWER
Answered 2017-Jan-17 at 02:57We could create different parameter files for different environments (dev, test, or production), and then we could customize the deployment by providing values that are tailored for a particular environment. Besides, as we know, we could use nested templates for conditional deployment, but only the root-level template is allowed Complete for the deployment mode. If you have to use Complete mode, you may need to write script to dynamically generate your templates for different environments based on your requirements and business logic.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install resource-template
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