Skip to content

The az resource create example doesn't work #11981

@jacekmackiewicz

Description

@jacekmackiewicz

Example: az resource create -g myRG -n myApiApp --resource-type Microsoft.web/sites --is-full-object --properties '{
"kind": "api",
"location": "West US",
"properties": {
"serverFarmId": "/subscriptions/{SubID}/resourcegroups/{ResourceGroup}/providers/Microsoft.Web/serverfarms/{ServicePlan}"
}
}'
doesn't work, giving a "Error parsing JSON.
{
Expecting property name enclosed in double quotes: line 1 column 2 (char 1)".


Document Details

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

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-group

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions