Questions tagged [azure-resource-group]
275 questions
2
votes
1 answer
delete a resource group via template.json in azure resource management
I want to delete the resource group on failure of any resources deployment.
and main note here is that i should not use logic app for this resource group deletion, i should use template.json file alone.
is there any possibility to delete a resource…

sathya
- 1,982
- 1
- 20
- 37
2
votes
0 answers
How to move toghether classic azure storage accounts to new resource group?
I have 4 classic storage accounts in one subscription. They are related since they are created in the same affinity group.
When I try to move just one of them to another resource group they are moved together automatically ( there is a message in…

Ognyan Dimitrov
- 6,026
- 1
- 48
- 70
2
votes
1 answer
How to use an Environment variable in an Azure Resource Management Template
I have searched and read the documentation of Resource Management Template, but i couldn't find any information over Environment variables. I tried to define 2 environment variables in a variable object, but it didn't work.
variables": {
…

Pythonist
- 115
- 2
- 12
2
votes
2 answers
How to delegate Resource costs overview on Azure Resource Groups?
We are currently moving our on-premise applications to Azure. Our department received a Resource Group in our companies tenant. We are able to create new resources within the RG, however we are not able to see the associated costs after we created…

Koen
- 475
- 4
- 17
2
votes
1 answer
ARM template - depending on resources from the outside of resource group
Here's what I have on Azure:
Resource group: 'microservice-1'
App Service: 'app-service-1'
Database: 'database-1'
Resource group: 'microservice-2'
App Service: 'app-service-2'
Database: 'database-2'
Resource group:…

frizik
- 1,766
- 1
- 13
- 17
2
votes
1 answer
Delete Azure Resource Groups with no resources in it
I am trying to find all the Azure RM resource groups with no resources in it and delete those resource groups using PowerShell. Deleting using Portal is so time consuming. Using powershell I was able to accomplish by using the following code. Is…

Mitul
- 9,734
- 4
- 43
- 60
2
votes
4 answers
Azure ARM Template SQL Azure Database Bacpac Import Fails on Second Deployment
I'm using the New-AzureRmResourceGroupDeployment Powershell cmdlet to deploy to a resource group using an Azure Resource Template. This is a test environment, so I want to restore a database from a .bacpac file to seed the database with a realistic…

Rob
- 81
- 3
1
vote
1 answer
Azure Resource Graph Explorer :: list all resourceGroup with subscriptionName
I've created a kusto query that will allow me to have an overview of all resourceGroups:
resourcecontainers
where type == 'microsoft.resources/subscriptions/resourcegroups'
project subscriptionId, resourceGroup, tags.mytag1, tags.mytag2,…

Francesco Mantovani
- 10,216
- 13
- 73
- 113
1
vote
1 answer
Create resource group with azure policy in each subscription
I'm trying to create an Azure policy for creating a RG for every subscription under my tenant.
I created this custom policy like I saw in some example but nothing is being created.
The custom policy:
{
"properties": {
"displayName":…

yershalom
- 786
- 1
- 8
- 19
1
vote
0 answers
Azure: How can I add Tags to managed Ressource Groups and ressources created by Synapse Analytics, Databricks, AKS or Purview?
I would like to ask how I'm able to add tags to managed resource groups and managed resources. With deployment of for example, Synapse or AKS, managed resource groups and resources are automatically created.
Unfortunately, I'm not able to add tags…

AzUser1
- 183
- 1
- 14
1
vote
1 answer
Create Azure Web App fails saying it already exists
I create resource-group :
PS > az group create -l westus -n rg-appsvc
Then I create app-service :
PS > az appservice plan create --resource-group=rg-appsvc --name appsvc-plan-test --sku S1
Then I create web-service :
PS > az webapp create…

BaltoStar
- 8,165
- 17
- 59
- 91
1
vote
1 answer
Why are write-host statements are not appearing when calling a script with an azure commandlet in it?
I have a very simplistic 2 scripts and I'm trying to call the powershell script from another powershell run script
run script (run.ps1)
.\NewRG.ps1 -rgName "singleVM12" -location "Canada Central" -tags @{dept="Marketing"}
called script…

tmitch87
- 11
- 2
1
vote
1 answer
Not able to create key vault being a Global Admin
I am trying to create Azure Key vault via Portal. While I'm selecting create a keyvault option in Azure Portal, I am getting error like below on Basics tab:
enter image description here
I am the Global Admin of my account. It's saying the resource…

user156092
- 15
- 4
1
vote
1 answer
ARM resource group deployment showing modification for new deployments eventhough there are no chnages
I am using below Bicep file for Azure role assignments . So here I have a Azuredevops pipeline which wil build the bicepfile to arm template and from pipeline variables, the paramaters.json file will be getting updated.
main.bicep
targetScope =…

Vowneee
- 956
- 10
- 33
1
vote
1 answer
Not enough cores to deploy resource group error on Azure for Students
I am very new to Azure. I have an Azure for Students subscription and I'm trying to create an Apache Kafka cluster using Azure HDInsight. I selected West Europe as my region. I'm using this resource as a guide:…

leila-m
- 97
- 1
- 9