From bb65321f3637b8d9570a46b03c89b107cb229fe8 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Wed, 26 Feb 2020 17:33:18 +0800 Subject: [PATCH] add cli.md for msi and fix location parameter --- .../2018-11-30/examples/IdentityCreate.json | 6 +++--- .../2018-11-30/examples/IdentityGet.json | 2 +- .../examples/IdentityListByResourceGroup.json | 2 +- .../examples/IdentityListBySubscription.json | 2 +- .../2018-11-30/examples/IdentityUpdate.json | 4 ++-- .../msi/resource-manager/readme.cli.md | 19 +++++++++++++++++++ 6 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 specification/msi/resource-manager/readme.cli.md diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityCreate.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityCreate.json index 7d47798e0b0b..d57e15052a87 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityCreate.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityCreate.json @@ -5,7 +5,7 @@ "resourceGroupName": "rgName", "resourceName": "resourceName", "parameters": { - "location": "cus", + "location": "eastus", "tags": { "key1": "value1", "key2": "value2" @@ -16,7 +16,7 @@ "201": { "body": { "id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", - "location": "cus", + "location": "eastus", "name": "identityName", "properties": { "clientId": "clientGUID", @@ -33,7 +33,7 @@ "200": { "body": { "id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", - "location": "cus", + "location": "eastus", "name": "identityName", "properties": { "clientId": "clientGUID", diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityGet.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityGet.json index 48d0b8321c92..f8dca8517fe4 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityGet.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityGet.json @@ -9,7 +9,7 @@ "200": { "body": { "id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", - "location": "cus", + "location": "eastus", "name": "identityName", "properties": { "clientId": "clientGUID", diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListByResourceGroup.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListByResourceGroup.json index 9b447a9d3889..d33cf94d2b6c 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListByResourceGroup.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListByResourceGroup.json @@ -10,7 +10,7 @@ "value": [ { "id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", - "location": "cus", + "location": "eastus", "name": "identityName", "properties": { "clientId": "clientGUID", diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListBySubscription.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListBySubscription.json index 4d17e0d6bb5b..ba8d11b3673f 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListBySubscription.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityListBySubscription.json @@ -9,7 +9,7 @@ "value": [ { "id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", - "location": "cus", + "location": "eastus", "name": "identityName", "properties": { "clientId": "clientGUID", diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityUpdate.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityUpdate.json index 1f2d2a6cf7b4..53d7be02e667 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityUpdate.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityUpdate.json @@ -5,7 +5,7 @@ "resourceGroupName": "rgName", "resourceName": "resourceName", "parameters": { - "location": "cus", + "location": "eastus", "tags": { "key1": "value1", "key2": "value2" @@ -16,7 +16,7 @@ "200": { "body": { "id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName", - "location": "cus", + "location": "eastus", "name": "identityName", "properties": { "clientId": "clientGUID", diff --git a/specification/msi/resource-manager/readme.cli.md b/specification/msi/resource-manager/readme.cli.md new file mode 100644 index 000000000000..822686560d2f --- /dev/null +++ b/specification/msi/resource-manager/readme.cli.md @@ -0,0 +1,19 @@ +## CLI + +These settings don't need to apply `--cli` on the command line. + +``` yaml +cli: + cli-name: msi + package-name: azure-mgmt-msi + namespace: azure.mgmt.msi + test-scenario: + - name: IdentityCreate + - name: IdentityGet + - name: IdentityListByResourceGroup + - name: IdentityListBySubscription + - name: MsiOperationsList + - name: MsiOperationsList + - name: IdentityUpdate + - name: IdentityDelete +``` \ No newline at end of file