Azure / Azure/azure-cli

Please add this as an example

Open
#18,341 3 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Hello!

Based on a recent case in CSS, can you please add the following example? Or at lease explain a bit more on the --properties and how to properly populate --name. Also, what are the different --resource-type types that can be created.

az resource create --resource-group "[resource-group]" --resource-type "Microsoft.Web/sites/siteextensions" --name "[sitename+slot]/siteextensions/Contrast.NetCore.Azure.SiteExtension" --api-version "2018-02-01" --is-full-object --properties '{\"id\":\"Contrast.NetCore.Azure.SiteExtension\", \"location\":\"[YourRegion]\", \"version\": \"1.9.0\"}'

I found that Location was required.

Thanks!

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: e76a8ad2-efd8-9e8a-9b2b-eebeb1e9d1d4
* Version Independent ID: 280b7ea9-eb6c-9601-464b-09bf8e0cff5d
* Content: [az resource](https://docs.microsoft.com/en-us/cli/azure/resource?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/resource.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/resource.yml)
* Service: **azure-resource-manager**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.