azure-resource-manager

Azure REST API - query parameters for getting all the virtual machine

余生长醉 提交于 2019-12-30 14:16:06
问题 I want to query all the virtual Machines in a subscription, but I want to be able to filter using a query param and not by code. I am able to get all the virtual machines but I want to know if I can filter them and how. I am not using the classic REST but ARM. 回答1: If this is the API you use: https://management.azure.com/subscriptions/{subscription-id}/resources?&api-version={api-version} then you can use filter like this: ?$filter={filter} Your request will look like this: https://management

Deploying a logic app using ARM templates/powershell

送分小仙女□ 提交于 2019-12-30 11:18:10
问题 How can I Deploy a logic app that calls a SQL DB stored procedure? I've tried the following action. "actions": { "Execute_stored_procedure": { "conditions": [ ], "inputs": { "body": null, "host": { "api": { "runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/sql" }, "connection": { "name": "<sql connection string>" } }, "method": "post", "path": "/datasets/default/procedures/@{encodeURIComponent(encodeURIComponent(string('<stored-procedure-name>')))}" }, "type":

Can I have an ARM template resource with a COPY array of 0 to N

两盒软妹~` 提交于 2019-12-30 05:53:05
问题 I'm deploying an ARM template that uses a copy resource block to deploy 1 or more data disks to a VM. What I'd like to do is change this to 0 or more. The parameter I use is "VirtualMachineDiskSizeArray": { "type": "array", "defaultValue": [ "100" ] }, Which is then called in a resource: "resources": [ { "name": "[parameters('virtualMachineName')]", "type": "Microsoft.Compute/virtualMachines", "apiVersion": "2016-04-30-preview", "location": "[parameters('rgLocation')]", "dependsOn": [ "

Azure Microsoft Insights API 2016-09-01 Error while collecting Metrics

浪子不回头ぞ 提交于 2019-12-29 02:06:09
问题 Please help me to understand why from last few days Azure Microsoft Insights API 2016-09-01 is giving the following error { "code": "BadRequest", "message": "only conditions of the form '<name> eq <value>' are allowed, where <name> = 'timeGrain', 'startTime', 'endTime', 'name.value', 'aggregationType', 'debugRegion' : ( name.value eq 'Disk Write Bytes' ) and timeGrain eq duration'PT5M' and startTime eq 2017-10-25T13:27:49.620 0000 and endTime eq 2017-10-25T13:32:49.620 0000 " } few days back

Azure Resource Manager IP Security Restrictions using Powershell

天涯浪子 提交于 2019-12-29 00:06:46
问题 I'm trying to use Powershell to set IP Security Restrictions. My syntax is not returning any errors, but settings are not changing. The "ipSecurityRestrictions" property is a hashtable. $r = Get-AzureRmResource -ResourceGroupName *resource-group-name* -ResourceType Microsoft.Web/sites/config -ResourceName resourcename/web -ApiVersion 2016-08-01 $p = $r.Properties $p.ipSecurityRestrictions = @{ ipAddress = "0.0.0.0"; subnetMask = "0.0.0.0" } Set-AzureRmResource -ResourceGroupName *resource

Issues deploying dscExtension to Azure VMSS

我们两清 提交于 2019-12-25 10:25:08
问题 I've been having some issues deploying a dscExtension to an Azure virtual machine scale set (VMSS) using a deployment template. Here's how I've added it to my template: { "name": "dscExtension", "properties": { "publisher": "Microsoft.Powershell", "type": "DSC", "typeHandlerVersion": "2.9", "autoUpgradeMinorVersion": true, "settings": { "ModulesUrl": "[concat(parameters('_artifactsLocation'), '/', 'MyDscPackage.zip', parameters('_artifactsLocationSasToken'))]", "ConfigurationFunction":

Azure python sdk for VM Resource Monitoring

与世无争的帅哥 提交于 2019-12-25 08:20:05
问题 I can retrieve the VM state by using Azure python sdk. Now I tried to get the VMs resource usage [ CPU, bandwith, disk ]. But unable to find the option for it. Someone please share the link if its available,. 回答1: We don't have full-packaged support for that currently. I suggest you to follow this issue on the Python SDK Github account: https://github.com/Azure/azure-sdk-for-python/issues/555 It's on the close roadmap. (I'm the guy in charge of the Python SDK at MS) 来源: https://stackoverflow

Creating a Service Fabric cluster using resource manager template

天大地大妈咪最大 提交于 2019-12-25 06:39:31
问题 No luck today, I'm receiving an InvalidTempalteDeployment error, I'm using the deploy and parameter json file: https://github.com/Azure/azure-quickstart-templates/tree/master/service-fabric-secure-cluster-5-node-1-nodetype-wad Error message: Test-AzureRmResourceGroupDeployment -ResourceGroupName "SF-API-Research" -TemplateFile "D:\Research\101-Azure\SF-API-Re search-ARM-Template\azuredeploy.json" -TemplateParameterFile "D:\Research\101-Azure\SF-API-Research-ARM-Template\azuredeploy.parameters

How to test Azure Marketplace offer?

橙三吉。 提交于 2019-12-25 03:35:46
问题 I created VM for publishing on Azure Marketplace. But I want to test it before I publish it for all. Besides, the publication takes several days. How to test my offer before publishing on Azure Marketplace? UPDATE: I see next screen on Cloud Partner Portal: Should I publish offer before I can test it? 回答1: what you want to test exactly? you can test the ui definition and template separately. you will also have to undergo testing from MS before publication, this readme talks about it in some

Retrieve FQDN of Azure SQL from a linkted template

我们两清 提交于 2019-12-25 01:56:08
问题 I'm looking for a valid property to retrieve FQDN of a managed Azure SQL server from a deployment of linked template. The one below seems not to be valid [reference(variables('sqlDeployment')).outputs.fullyQualifiedDomainName.value]" and where can I find all supported parameters? It seems to be challenging to find enough info from Microsoft Docs. 回答1: Looks like your linked template did not have an output property named as 'fullyQualifiedDomainName'. To get an output value from a linked