Skip to content

Commit c0fd63b

Browse files
authored
Merge pull request #106824 from msebolt/azurecli-update-pr1
azurecli update
2 parents 24d35c3 + bf500b4 commit c0fd63b

11 files changed

+41
-36
lines changed

articles/azure-app-configuration/enable-dynamic-configuration-aspnet-core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Before you continue, finish [Create an ASP.NET Core app with App Configuration](
4949

5050
1. Add a reference to the `Microsoft.Azure.AppConfiguration.AspNetCore` NuGet package by running the following command:
5151

52-
```CLI
52+
```dotnetcli
5353
dotnet add package Microsoft.Azure.AppConfiguration.AspNetCore
5454
```
5555

articles/azure-app-configuration/quickstart-azure-functions-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ In this quickstart, you incorporate the Azure App Configuration service into an
8383

8484
1. Set an environment variable named **ConnectionString**, and set it to the access key to your App Configuration store. If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
8585

86-
```CLI
86+
```cmd
8787
setx ConnectionString "connection-string-of-your-app-configuration-store"
8888
```
8989

articles/azure-app-configuration/quickstart-dotnet-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ In this quickstart, you incorporate Azure App Configuration into a .NET Framewor
8989
9090
1. Set an environment variable named **ConnectionString** to the connection string of your App Configuration store. If you use the Windows command prompt, run the following command:
9191
92-
```CLI
92+
```cmd
9393
setx ConnectionString "connection-string-of-your-app-configuration-store"
9494
```
9595

articles/azure-app-configuration/quickstart-dotnet-core-app.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ You use the [.NET Core command-line interface (CLI)](https://docs.microsoft.com/
3939

4040
2. In the new folder, run the following command to create a new ASP.NET Core console app project:
4141

42-
```CLI
43-
dotnet new console
42+
```dotnetcli
43+
dotnet new console
4444
```
4545
4646
## Connect to an App Configuration store
4747
4848
1. Add a reference to the `Microsoft.Extensions.Configuration.AzureAppConfiguration` NuGet package by running the following command:
4949
50-
```CLI
51-
dotnet add package Microsoft.Extensions.Configuration.AzureAppConfiguration
50+
```dotnetcli
51+
dotnet add package Microsoft.Extensions.Configuration.AzureAppConfiguration
5252
```
5353
5454
2. Run the following command to restore packages for your project:
5555
56-
```CLI
57-
dotnet restore
56+
```dotnetcli
57+
dotnet restore
5858
```
5959
6060
3. Open *Program.cs*, and add a reference to the .NET Core App Configuration provider.
@@ -81,14 +81,14 @@ You use the [.NET Core command-line interface (CLI)](https://docs.microsoft.com/
8181
8282
1. Set an environment variable named **ConnectionString**, and set it to the access key to your App Configuration store. At the command line, run the following command and restart the command prompt to allow the change to take effect:
8383
84-
```CLI
85-
setx ConnectionString "connection-string-of-your-app-configuration-store"
84+
```cmd
85+
setx ConnectionString "connection-string-of-your-app-configuration-store"
8686
```
8787
8888
If you use Windows PowerShell, run the following command:
8989
9090
```azurepowershell
91-
$Env:ConnectionString = "connection-string-of-your-app-configuration-store"
91+
$Env:ConnectionString = "connection-string-of-your-app-configuration-store"
9292
```
9393
9494
If you use macOS or Linux, run the following command:
@@ -97,14 +97,14 @@ You use the [.NET Core command-line interface (CLI)](https://docs.microsoft.com/
9797
9898
2. Run the following command to build the console app:
9999
100-
```CLI
101-
dotnet build
100+
```dotnetcli
101+
dotnet build
102102
```
103103
104104
3. After the build successfully completes, run the following command to run the app locally:
105105
106-
```CLI
107-
dotnet run
106+
```dotnetcli
107+
dotnet run
108108
```
109109
110110
## Clean up resources

articles/azure-app-configuration/quickstart-java-spring-app.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Use the [Spring Initializr](https://start.spring.io/) to create a new Spring Boo
142142

143143
1. Set an environment variable named **APP_CONFIGURATION_CONNECTION_STRING**, and set it to the access key to your App Configuration store. At the command line, run the following command and restart the command prompt to allow the change to take effect:
144144

145-
```CLI
145+
```cmd
146146
setx APP_CONFIGURATION_CONNECTION_STRING "connection-string-of-your-app-configuration-store"
147147
```
148148

@@ -154,22 +154,22 @@ Use the [Spring Initializr](https://start.spring.io/) to create a new Spring Boo
154154

155155
If you use macOS or Linux, run the following command:
156156

157-
```console
157+
```cmd
158158
export APP_CONFIGURATION_CONNECTION_STRING='connection-string-of-your-app-configuration-store'
159159
```
160160

161161
## Build and run the app locally
162162

163163
1. Build your Spring Boot application with Maven and run it, for example:
164164

165-
```CLI
165+
```cmd
166166
mvn clean package
167167
mvn spring-boot:run
168168
```
169169

170170
2. After your application is running, use *curl* to test your application, for example:
171171

172-
```CLI
172+
```cmd
173173
curl -X GET http://localhost:8080/
174174
```
175175

articles/azure-app-configuration/use-key-vault-references-dotnet-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ To add a secret to the vault, you need to take just a few additional steps. In t
241241
242242
1. To build the app by using the .NET Core CLI, run the following command in the command shell:
243243
244-
```
244+
```dotnetcli
245245
dotnet build
246246
```
247247
248248
1. After the build is complete, use the following command to run the web app locally:
249249
250-
```
250+
```dotnetcli
251251
dotnet run
252252
```
253253

articles/azure-australia/role-privileged.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ Examples of the types of access that can be assigned for Azure AD administration
5858
It is important to take the time to understand the full list of allowed actions a built-in role provides to ensure that undue access to isn't granted. The list of built-in roles and the access they provide is constantly evolving, the full list of the Roles and their definitions can be viewed by reviewing the documentation linked above or by using the Azure PowerShell cmdlet:
5959

6060
```PowerShell
61-
PS C:\> Get-AzRoleDefinition
61+
Get-AzRoleDefinition
62+
```
6263

64+
```output
6365
Name : AcrDelete
6466
Id : <<RoleID>>
6567
IsCustom : False
@@ -74,8 +76,11 @@ AssignableScopes : {/}
7476

7577
or the Azure CLI command:
7678

77-
```bash
78-
PS C:\> az role definition list
79+
```azurecli-interactive
80+
az role definition list
81+
```
82+
83+
```output
7984
[
8085
{
8186
"assignableScopes": [

articles/cdn/create-profile-resource-manager-template.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All resources must be deployed in the same resource group.
3838

3939
Create the resource group in the location that you select. This example shows the creation of a resource group named cdn in the East US location.
4040

41-
```bash
41+
```azurecli-interactive
4242
az group create --name cdn --location eastus
4343
```
4444

@@ -185,23 +185,23 @@ Deploy the template using Azure CLI. You will be prompted for 2 inputs:
185185

186186
**endpointOriginHostName** - the endpoint that will be served through the CDN, for example, cdndemo.azurewebsites.net.
187187

188-
```bash
188+
```azurecli-interactive
189189
az group deployment create --resource-group cdn --template-file arm-cdn.json
190190
```
191191

192192
![Deploy Resource Manager Template](./media/create-profile-resource-manager-template/cdn-deploy-resource-manager.png)
193193

194194
## View the CDN profile
195195

196-
```bash
196+
```azurecli-interactive
197197
az cdn profile list --resource-group cdn -o table
198198
```
199199

200200
![View CDN Profile](./media/create-profile-resource-manager-template/cdn-view-profile.png)
201201

202202
## View the CDN Endpoint for the profile standard-microsoft
203203

204-
```bash
204+
```azurecli-interactive
205205
az cdn endpoint list --profile-name standard-microsoft --resource-group cdn -o table
206206
```
207207

@@ -213,7 +213,7 @@ Use the HostName to view the content. For example, access https://cdndemo-azurew
213213

214214
Deleting the resource group will automatically remove all of the resources that were deployed in it.
215215

216-
```bash
216+
```azurecli-interactive
217217
az group delete --name cdn
218218
```
219219

articles/cloud-shell/example-terraform-bash.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ ms.author: tarcher
1717
---
1818

1919
# Deploy with Terraform from Bash in Azure Cloud Shell
20-
This article walks you through creating a resource group with the [Terraform AzureRM provider](https://www.terraform.io/docs/providers/azurerm/index.html).
20+
This article walks you through creating a resource group with the [Terraform AzureRM provider](https://www.terraform.io/docs/providers/azurerm/index.html).
2121

22-
[Hashicorp Terraform](https://www.terraform.io/) is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members to be edited, reviewed, and versioned. The Microsoft AzureRM provider is used to interact with resources supported by Azure Resource Manager via the AzureRM APIs.
22+
[Hashicorp Terraform](https://www.terraform.io/) is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members to be edited, reviewed, and versioned. The Microsoft AzureRM provider is used to interact with resources supported by Azure Resource Manager via the AzureRM APIs.
2323

2424
## Automatic authentication
2525
Terraform is installed in Bash in Cloud Shell by default. Additionally, Cloud Shell automatically authenticates your default Azure CLI subscription to deploy resources through the Terraform Azure modules.
@@ -143,7 +143,7 @@ The [terraform apply command](https://www.terraform.io/docs/commands/apply.html)
143143
### Verify deployment with Azure CLI
144144
Run `az group show -n myRgName` to verify the resource has succeeded provisioning.
145145

146-
```azcliinteractive
146+
```azurecli-interactive
147147
az group show -n myRgName
148148
```
149149

articles/cloud-shell/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Upon establishing the SSH connection, you should see the Ubuntu welcome prompt.
8080

8181
## Cleaning up
8282
1. Exit your ssh session.
83-
```azurecli-interactive
83+
```
8484
exit
8585
```
8686

0 commit comments

Comments
 (0)