azure-powershell Questions

2

I was doing some cleanup moving some Azure Cloud Services to a newly created Resource group with the following command Find-AzureRmResource -ResourceNameContains "oldresourcename" | Move-AzureRmRe...

4

Solved

I created new config file for Kubernetes from Azure in Powershell by az aks get-credentials --resource-group <RGName> --name <ClusterName>. Got a message that Merged "cluster_name&...
Strenuous asked 12/4, 2023 at 10:52

7

Solved

I'm trying to merge the develop branch to the master branch when building with Azure Pipelines PowerShell task. But while executing the command git push, I'm getting this error: Fatal: Could n...

1

In my pipeline I have a task (among others) that either succeeds or succeeds with issues, controlled by: if (-Not $packagesAreUpToDate) {Write-Host "##vso[task.complete result=SucceededWithIss...
Sabadell asked 19/1, 2022 at 9:40

3

Solved

The goal is to delete all resources in a resourcegroup without deleting it using azure CLI. From reading the doc, I can do this: az resource delete -g MyResourceGroup -n MyVm Therefore I assumed I...
Sigmon asked 4/9, 2020 at 16:23

2

To grant Microsoft Graph API permissions to a User-Assigned Managed Service Identity or System-Assigned Managed Service Identity, one has to use PowerShell. All the articles I can find (e.g. this) ...

2

Solved

I am trying to write to a powershell script to validate the Resource Group is exist or not. Conditions- Check the resource group (myrg) is already exist in azure subscription. If "condition 1" i...

6

The Azure Powershell Az module comes with an assortment of modules such as Az.Accounts, Az.Aks, etc. Is it possible to update all these Az.* modules at once?
Ponton asked 9/4, 2021 at 15:30

5

Solved

I'm trying to get into that Visual Studio Resource Group template. So far it's looking good, and I have added some appsettings for a web app, but my question is, how can I make them deployment slot...

4

Solved

I have the below script that needs to remove files from an Azure Storage Container that are older than 7 days and it has suddenly stopped working: $StorageAccountName = "#" $StorageAccountKey = "#...
Oxidimetry asked 3/10, 2019 at 1:17

4

Is there anywhere you can get a full list of all the resource types offered by Azure? I'm doing policy/role management and there doesn't seem to be a great place to look for all resource types. Cur...

3

I'm trying to work out the PowerShell syntax for cancelling all pending import/export operations on an Azure SQL Server. I know that I can use Stop-AzSqlDatabaseActivity cmdlet but this requires a ...
Caligula asked 25/1, 2022 at 12:31

7

I'm creating a Service principal to be used as an Azure Runas Account for Azure Automation, using a Powershell script. The script works, however I get the following warning when it's completed WARN...
Aindrea asked 8/11, 2019 at 8:19

5

Solved

In an Azure DevOps 'release pipeline', I provision Azure resources - including SQLServer databases - and try to configure access to databases using managed identities. After ensuring the DevOps se...

1

I am running a pipeline that uses a powershell script and I need to bind a tag I created to my Firestore database in Google Cloud Platform the gcloud command to do this is as follows: gcloud resour...

4

Solved

When i execute following command Clear-AzureProfile Connect-AzAccount -TenantID xxxxxxxxxxxxxxxxxxx Set-AzContext -SubscriptionId xxxxxxxxxxxxxxxxxxx in Azure PowerShell i get this error. Set...
Swarm asked 20/6, 2019 at 17:34

4

Solved

In Azure Classic / Service Management, Get-AzureSubscription would give a list of subscriptions in the Tenant with an indicator of which was current. There was also a Get-AzureSubscription -Curre...
Internship asked 21/1, 2016 at 16:0

7

Solved

I am trying to execute the following PowerShell script in Azure DevOps pipeline by using PowerShell task with inline mode. $clientId= "xxxxxxxxx" $clientSecret= "xxxxxxx" $sub...
Misogamy asked 2/10, 2020 at 13:8

4

Solved

Summary I'm creating a CI/CD provisioning pipeline for a new Azure Storage Account within an Azure DevOps Pipeline and attempting to upload some files into the Blob Storage using AzCopy running fr...
Conwell asked 6/7, 2019 at 18:13

4

Command: Get-AzureADUser [-Filter ] command msdn says Parameters -Filter Specifies an oData v3.0 filter statement. This parameter controls which objects are returned. how to set filter to get the...
Ammunition asked 26/1, 2017 at 11:54

1

Solved

Facing an issue while trying to run the AzurePowerShell@5 task in Azure devops Az version null not avaiable locally on the agent. Downloading dynamically. Validate-VersionParameters: Cannot convert...
Leadwort asked 21/4, 2023 at 6:40

5

Solved

I have an Azure Function App / Azure Website setup with continuous deployment from source-control. This App has a custom deployment script that takes quite a bit of time to run. Occasionally I pus...
Jeannajeanne asked 31/1, 2017 at 19:28

4

Solved

I want to write a script that run using azure power shell to automate adding the Web Application configuration Azure > MyWebApp > Application Settings > App settings It's look like key = "value" ...
Cartan asked 12/9, 2015 at 21:11

5

Solved

Post updated. Issue has been solved. The scripts below will create a resource group, create a service principal, deploy a key vault, configure permissions and write a secret to the vault. Hopes thi...
Sports asked 13/7, 2017 at 12:22

12

Solved

I was trying to install Azure using Install-Module Azure in PowerShell. I got the following error: PS C:\Windows\system32> Install-Module Azure Install-Module : The term 'Install-Module' is not...

© 2022 - 2025 — McMap. All rights reserved.