Comments (3)
Thank you for opening this issue, we will look into it.
from azure-cli.
Hi @vienleidl
In the az containerapp compose create
command, if the specified environment name does not exist in the resource group or the environment resource Id does not exist, it will auto create a new environment will a new log workspace.
If you want to create an environment with exiting log workspace, you can use this:
$logs_workspace_customer_id=$(az monitor log-analytics workspace show -g {resource-group-name} -n {your-log-workspace-name} --query "customerId")
$logs_workspace_shared_key=$(az monitor log-analytics workspace get-shared-keys -g {resource-group-name} -n {your-log-workspace-name} --query "primarySharedKey")
az containerapp env create -n {name} -g {resource-group-name} --logs-workspace-id {logs_workspace_customer_id} --logs-workspace-key {logs_workspace_shared_key}
from azure-cli.
Hi @vienleidl
In the
az containerapp compose create
command, if the specified environment name does not exist in the resource group or the environment resource Id does not exist, it will auto create a new environment will a new log workspace.If you want to create an environment with exiting log workspace, you can use this:
$logs_workspace_customer_id=$(az monitor log-analytics workspace show -g {resource-group-name} -n {your-log-workspace-name} --query "customerId") $logs_workspace_shared_key=$(az monitor log-analytics workspace get-shared-keys -g {resource-group-name} -n {your-log-workspace-name} --query "primarySharedKey") az containerapp env create -n {name} -g {resource-group-name} --logs-workspace-id {logs_workspace_customer_id} --logs-workspace-key {logs_workspace_shared_key}
Hi @Greedygre, gotcha & thank you! Now I can see that the LA workspace is sticked with the Container App Environment, it means the workspace should be created in advance.
from azure-cli.
Related Issues (20)
- Preview warning still showing on az network lb address-pool address commands HOT 2
- Publish Azure CLI for Windows x86 as ZIP too HOT 2
- Linking to this issue because it still exists, 3 years later: https://github.com/Azure/azure-cli/issues/19468 HOT 4
- Damarcus Jones Ai Chips HOT 2
- Damarcus Jones Ai Chips HOT 1
- `az extension add --name azure-devops` reaches out to pypi.org and flagged in build pipeline HOT 2
- Principal not found in tenant error HOT 4
- az webapp deploy `complete` but no files uploaded HOT 2
- Unable to create KeyVault with purge protection disabled HOT 1
- Contradictory help message regarding the default value of az keyvault create --enable-rbac-authorization HOT 1
- az monitor action-group create requires --tags with whitespace to be surrounded by single quotes unlike other commands HOT 1
- Unable to cleanup ACR via cli using Workload Identity to authenticate HOT 3
- "containerapp hostname bind" fails to find managed certificates by name HOT 3
- Creating a VPN Gateway root certificate from a PEM file does not work as expected HOT 2
- Azure Container Registry Cache Rule HOT 1
- Connect-AzAccount fails - 'Sign-in' dialog blocking/not working HOT 2
- "az containerapp hostname bind" does not create a managed certificate HOT 3
- az keyvault network-rule add --subnet {subnet id here} ..{additional params}... not working HOT 4
- Please include an example for "az set --subscription" HOT 2
- azure cli via script failing on ubuntu HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-cli.