Skip to content

Make recent Azure CLI versions available when using deployment scripts #30724

@StevenDevooght

Description

@StevenDevooght

Related command
We are using a deployment script resources of kind AzureCLI to deploy some resources to Azure.

resource azureActiveDirectoryResourcesDeploymentScript 'Microsoft.Resources/deploymentScripts@2023-08-01' = {
  name: '${applicationId}-${environment}-${instance}-entraid-ds'
  location: location
  tags: tags
  kind: 'AzureCLI'
  identity: {
    type: 'UserAssigned'
    userAssignedIdentities: {
      '${identity.id}': {}
    }
  }
  properties: {
    azCliVersion: '2.66.0'
    retentionInterval: 'PT1H'
    cleanupPreference: 'OnSuccess'
    scriptContent: loadTextContent('./../.scripts/DeployAzureActiveDirectoryResources.sh')
    forceUpdateTag: baseTime
  }
}

Is your feature request related to a problem? Please describe.
We would like to use a newer version of Azure CLI (at least version 2.66.0). However the deployment gives us the following error indicating that 2.66.0 is not available yet.

{
    "code": "DeploymentPreflightValidationFailed",
    "target": "/subscriptions/5035e045-cfb7-477f-b956-8b93f9c3cc56/resourceGroups/nns-dev-ugl-rg/providers/Microsoft.Resources/deploymentScripts/nns-dev-ugl-entraid-ds",
    "message": "The script language version '2.66.0' is not supported. Supported versions: '2.0.77,2.0.78,2.0.79,2.0.80,2.0.81,2.1.0,2.10.0,2.10.1,2.11.0,2.11.1,2.12.0,2.12.1,2.13.0,2.14.0,2.14.1,2.14.2,2.15.0,2.15.1,2.16.0,2.17.0,2.17.1,2.18.0,2.19.0,2.19.1,2.2.0,2.20.0,2.21.0,2.22.0,2.22.1,2.23.0,2.24.0,2.24.1,2.24.2,2.25.0,2.26.0,2.26.1,2.27.0,2.27.1,2.27.2,2.28.0,2.29.0,2.29.1,2.29.2,2.3.0,2.3.1,2.30.0,2.31.0,2.32.0,2.33.0,2.33.1,2.34.0,2.34.1,2.35.0,2.36.0,2.37.0,2.38.0,2.39.0,2.4.0,2.40.0,2.41.0,2.42.0,2.43.0,2.44.0,2.44.1,2.45.0,2.46.0,2.47.0,2.48.0,2.48.1,2.49.0,2.5.0,2.5.1,2.50.0,2.51.0,2.52.0,2.53.0,2.53.1,2.54.0,2.55.0,2.56.0,2.57.0,2.58.0,2.59.0,2.6.0,2.60.0,2.61.0,2.62.0,2.63.0,2.64.0,2.7.0,2.8.0,2.9.0,2.9.1'. Please refer to https://aka.ms/DeploymentScriptsTroubleshoot for more deployment script information."
}

Describe the solution you'd like
According to the documentation new Azure CLI versions should become available after 30 days on the deployment script runtime. However version 2.66.0 was released on 5 November 2024 and is still not available to use on deployment scripts.
When will the newer Azure CLI versions become available on the deployment script runtime?

Describe alternatives you've considered
/

Additional context
/

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions