skip to Main Content

Azure – wrong Az.Acoounts version being used

I have these tasks in a pipeline I'm using that is failing because it is using Az.Accounts version earlier than 2.19.0 (2.17.0) - task: PowerShell@2 displayName: 'Install Az.Accounts' inputs: pwsh: true targetType: 'inline' script: 'Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Repository…

VIEW QUESTION

Azure Cost Management API is not returning the Blob location

I have a PowerShell script that calls the Microsoft Azure API for cost management. I first call: https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/*****5/providers/Microsoft.CostManagement/generateCostDetailsReport?api-version=2023-08-01" This returns a 202 as expected: StatusCode : 202 StatusDescription : Accepted Content : {} RawContent : HTTP/1.1 202 Accepted Pragma: no-cache…

VIEW QUESTION

Azure – Unable to create Alert for podReadyPercentage metrics

I am trying to create a MetricAlert using the following script Set-AzContext -Subscription "f0bXXXXXXX" $action = Get-AzActionGroup -ResourceGroupName gze-actgrp-pd-rgp-001 -Name UWDevOps_PD $actionID = New-AzActionGroup -ActionGroupId $action.id #Get-AzMetricDefinition -ResourceId "/subscriptions/9ca9XXXXX/resourcegroups/gze-pdi203-pd1-rgp-001/providers/Microsoft.ContainerService/managedClusters/gze-pdi203-pd1-aks-isostr-001" #set alert dim to pick the right options $dim = New-AzMetricAlertRuleV2DimensionSelection…

VIEW QUESTION
Back To Top
Search