Skip to content

Replace azlocal with az#64

Merged
paolosalvatori merged 2 commits intomainfrom
azlocal-to-az
Mar 23, 2026
Merged

Replace azlocal with az#64
paolosalvatori merged 2 commits intomainfrom
azlocal-to-az

Conversation

@paolosalvatori
Copy link
Copy Markdown
Contributor

@paolosalvatori paolosalvatori commented Mar 23, 2026

Motivation

Due to the recent introduction of the certificate for the Azure emulator and the refactoring of the fully qualified names of emulated services, the use of the azlocal CLI is no longer necessary. Hence, this pull request introduces the necessary changes to replace the azlocal with az in the following samples:

Sample Name Description
Function App and Storage Azure Functions App using Blob, Queue, and Table Storage
Function App and Managed Identities Azure Function App using Managed Identities
Function App and Service Bus Azure Function App using Service Bus
Web App and CosmosDB for MongoDB API Azure Web App using CosmosDB for MongoDB API
Web App and Managed Identities Azure Web App using Managed Identities
Web App and SQL Database Azure Web App using SQL Database
Azure Service Bus with Spring Boot Azure Service Bus used by a Spring Boot application

Changes

This pull requests removes this test from .sh Bash scripts:

...
ENVIRONMENT=$(az account show --query environmentName --output tsv)
...
# Run terraform init and apply
if [[ $ENVIRONMENT == "LocalStack" ]]; then
	echo "Using azlocal for LocalStack emulator environment."
	AZ="azlocal"
else
	echo "Using standard terraform and az for AzureCloud environment."
	AZ="az"
fi

In addition, it replaces $AZ with az.

Next Steps

@DrisDary / @alexlave100 when this pull request is complete, please run git pull origin main and replace azlocal with az in the following samples:

Sample Name Description
Function App and Front Door Azure Functions App exposed via Front Door
ACI and Blob Storage Azure Container Instances with ACR, Key Vault, and Blob Storage
Web App and CosmosDB for NoSQL API Azure Web App using CosmosDB for NoSQL API

@paolosalvatori paolosalvatori requested a review from a team as a code owner March 23, 2026 07:52
@paolosalvatori paolosalvatori added the enhancement New feature or request label Mar 23, 2026
Copy link
Copy Markdown
Contributor

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

Nice! Very happy to see that we can now use az everywhere

@paolosalvatori
Copy link
Copy Markdown
Contributor Author

Nice! Very happy to see that we can now use az everywhere

Totally, I'm very happy, the developer and system engineer experience now is much cleaner and smoother.

@paolosalvatori paolosalvatori merged commit 8bd4d97 into main Mar 23, 2026
24 checks passed
@DrisDary DrisDary mentioned this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants