Skip to content

Conversation

@0-LY
Copy link

@0-LY 0-LY commented Nov 16, 2025

Summary

When attempting to run actions with the spin up environment label, an error occurs:
Run az group create --location ‘East US’ --name cd-with-actions --subscription ERROR: argument --subscription: expected one argument

Changes

Removed subscription ID from Azure CLI commands for resource creation and deletion.
Referring to this documentation.

Closes: #106

Task list

  • For workflow changes, I have verified the Actions workflows function as expected.
  • For content changes, I have reviewed the style guide.

Removed subscription ID from Azure CLI commands for resource creation and deletion. 

(Run az group create --location "East US" --name cd-with-actions --subscription 
ERROR: argument --subscription: expected one argument)
Copilot AI review requested due to automatic review settings November 16, 2025 13:09
@0-LY 0-LY changed the title Simplify Azure CLI commands by removing subscription ID Fix Azure CLI commands by removing subscription ID Nov 16, 2025
Copilot finished reviewing on behalf of 0-LY November 16, 2025 13:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an error in Azure CLI commands by removing the redundant --subscription parameter. When using the azure/login@v2 action with AZURE_CREDENTIALS, the subscription context is automatically set, making the explicit subscription ID parameter unnecessary and causing command failures.

Key changes:

  • Removed --subscription ${{secrets.AZURE_SUBSCRIPTION_ID}} from all Azure CLI commands in the workflow documentation
  • Simplified resource group creation, app service plan creation, webapp creation, webapp configuration, and resource group deletion commands

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Azure CLI Error

1 participant