diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintAssignment.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintAssignment.json index 9c4b7530d349..e112827a84e8 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintAssignment.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintAssignment.json @@ -195,7 +195,9 @@ "properties" ], "allOf": [ - { "$ref": "#/definitions/TrackedResource" } + { + "$ref": "#/definitions/TrackedResource" + } ] }, "AssignmentList": { @@ -249,10 +251,11 @@ "AssignmentStatus": { "description": "The status of Blueprint assignment. This field is readonly.", "type": "object", - "properties": { - }, + "properties": {}, "allOf": [ - { "$ref": "#/definitions/BlueprintResourceStatusBase" } + { + "$ref": "#/definitions/BlueprintResourceStatusBase" + } ] }, "AssignmentLockSettings": { @@ -357,9 +360,13 @@ "description": "actual value." } }, - "required": [ "value" ], + "required": [ + "value" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretReferenceParameterValue": { @@ -371,9 +378,13 @@ "$ref": "#/definitions/SecretValueReference" } }, - "required": [ "reference" ], + "required": [ + "reference" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretValueReference": { @@ -407,7 +418,9 @@ "type": "string" } }, - "required": [ "id" ] + "required": [ + "id" + ] }, "ResourceGroupValueCollection": { "description": "A dictionary which maps resource group placeholders to the resource groups which will be created.", @@ -440,12 +453,19 @@ "location": { "type": "string", "description": "The location of this Blueprint assignment.", - "x-ms-mutability": [ "read", "create" ] + "x-ms-mutability": [ + "read", + "create" + ] } }, - "required": [ "location" ], + "required": [ + "location" + ], "allOf": [ - { "$ref": "#/definitions/AzureResourceBase" } + { + "$ref": "#/definitions/AzureResourceBase" + } ] }, "AzureResourceBase": { @@ -530,4 +550,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintDefinition.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintDefinition.json index 44030843ec48..4ba4fbedb4da 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintDefinition.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintDefinition.json @@ -808,7 +808,9 @@ "type": "object", "x-ms-external": true, "allOf": [ - { "$ref": "#/definitions/SharedBlueprintProperties" } + { + "$ref": "#/definitions/SharedBlueprintProperties" + } ], "properties": { "versions": { @@ -829,7 +831,9 @@ "type": "object", "x-ms-external": true, "allOf": [ - { "$ref": "#/definitions/SharedBlueprintProperties" } + { + "$ref": "#/definitions/SharedBlueprintProperties" + } ], "properties": { "blueprintName": { @@ -846,10 +850,11 @@ "BlueprintStatus": { "description": "The status of the blueprint. This field is readonly.", "type": "object", - "properties": { - }, + "properties": {}, "allOf": [ - { "$ref": "#/definitions/BlueprintResourceStatusBase" } + { + "$ref": "#/definitions/BlueprintResourceStatusBase" + } ] }, "TemplateArtifactProperties": { @@ -1028,9 +1033,13 @@ "description": "actual value." } }, - "required": [ "value" ], + "required": [ + "value" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretReferenceParameterValue": { @@ -1042,9 +1051,13 @@ "$ref": "#/definitions/SecretValueReference" } }, - "required": [ "reference" ], + "required": [ + "reference" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretValueReference": { @@ -1078,7 +1091,9 @@ "type": "string" } }, - "required": [ "id" ] + "required": [ + "id" + ] }, "ParameterDefinitionCollection": { "description": "A dictionary hold parameter name and it's metadata.", @@ -1335,4 +1350,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Create.json index ccc6a4335a97..a675a925467a 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Create.json @@ -1,118 +1,118 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate", - "artifact":{ - "kind": "template", - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate", + "artifact": { + "kind": "template", + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" + }, + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Delete.json index 572a6ffdd465..65537e44dea9 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Delete.json @@ -1,68 +1,68 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" } + } }, - "204":{} - } -} \ No newline at end of file + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Get.json index 7735882f9fc8..f146d0bd4d07 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/ARMTemplateArtifact_Get.json @@ -1,67 +1,67 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Artifact_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Artifact_List.json index 82bcbd2444d6..a3fdb6ac6e35 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Artifact_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Artifact_List.json @@ -1,95 +1,99 @@ { - "parameters": { - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName": "ContosoOnlineGroup", - "blueprintName":"simpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + }, + { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + }, + { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" - }, - { - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } - }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" - } - ] - } - } + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Create.json index 72506f7b030d..d93f01b4c46f 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Create.json @@ -1,77 +1,77 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "subscriptionId":"f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint", - "assignment":{ - "identity":{ - "type": "SystemAssigned" + "parameters": { + "api-version": "2017-11-11-preview", + "subscriptionId": "f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint", + "assignment": { + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] + } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "creating", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] } - } - }, - "responses":{ - "201":{ - "body":{ - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "creating", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" } - } + } + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Delete.json index b88d2267e76c..6830819f6813 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Delete.json @@ -1,48 +1,48 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "subscriptionId":"f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint" - }, - "responses":{ - "202":{ - "body":{ - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "deleting", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" + "parameters": { + "api-version": "2017-11-11-preview", + "subscriptionId": "f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint" + }, + "responses": { + "202": { + "body": { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "deleting", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } }, - "204":{} - } -} \ No newline at end of file + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Get.json index 1712b745e0a7..d09214f9589a 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_Get.json @@ -1,47 +1,47 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "subscriptionId":"f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "succeed", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" + "parameters": { + "api-version": "2017-11-11-preview", + "subscriptionId": "f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "succeed", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] } - } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_List.json index 9d868f7348ff..ad2810ea8ac6 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/BlueprintAssignment_List.json @@ -1,50 +1,50 @@ { - "parameters": { - "api-version":"2017-11-11-preview", - "subscriptionId": "f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "failed", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" - } - ] - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "subscriptionId": "f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "failed", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] + } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Create.json index 1bde51a7e868..9d55fa613ef7 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Create.json @@ -1,86 +1,86 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "blueprint":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "blueprint": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." } - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." } - } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Delete.json index 04b6c359ab6f..9b66debd48a3 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Delete.json @@ -1,51 +1,51 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } } + }, + "targetScope": "subscription", + "status": null }, - "204":{} - } -} \ No newline at end of file + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Get.json index 1c51af90f298..9a0489a8da1c 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_Get.json @@ -1,50 +1,50 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_List.json index 9954a20390f4..544a612bcfb4 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/Blueprint_List.json @@ -1,53 +1,53 @@ { - "parameters": { - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName": "ContosoOnlineGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" - } - ] - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/OperationsList.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/OperationsList.json index d15976b48e64..c7ee7d77358a 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/OperationsList.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/OperationsList.json @@ -1,22 +1,22 @@ { - "parameters":{ - "api-version":"2017-11-11-preview" - }, - "responses":{ - "200":{ - "body":{ - "value":[ - { - "name":"Microsoft.Blueprint/blueprints/read", - "display":{ - "provider":"Microsoft Blueprint", - "resource":"Blueprint", - "operation":"Read Blueprints", - "description":"Read any Blueprints" - } - } - ] + "parameters": { + "api-version": "2017-11-11-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Blueprint/blueprints/read", + "display": { + "provider": "Microsoft Blueprint", + "resource": "Blueprint", + "operation": "Read Blueprints", + "description": "Read any Blueprints" } - } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Create.json index 08b147692a91..f253bd4d3231 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Create.json @@ -1,38 +1,46 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy", - "artifact":{ - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy", + "artifact": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } } - }, - "responses":{ - "201":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + }, + "kind": "policyAssignment" + } + }, + "responses": { + "201": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Delete.json index 34ce7f59cceb..6c90fea033c0 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Delete.json @@ -1,28 +1,32 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } + } }, - "204":{} - } -} \ No newline at end of file + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Get.json index 8e1adcd04fcb..2ad4532b71cc 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/PolicyAssignmentArtifact_Get.json @@ -1,27 +1,31 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Create.json index 422d40ba448f..b770275d867e 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Create.json @@ -1,32 +1,32 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment", - "artifact":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment" - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment", + "artifact": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment" } + }, + "responses": { + "201": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } + } + } } diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Delete.json index e9dce0b49766..7c6a9a6b8c0b 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Delete.json @@ -1,25 +1,25 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" }, - "204":{} - } -} \ No newline at end of file + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Get.json index 75db250c40f3..5a275ffd0fca 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/RoleAssignmentArtifact_Get.json @@ -1,24 +1,24 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedARMTemplateArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedARMTemplateArtifact_Get.json index 1f6a41a8c756..74d0e7db7505 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedARMTemplateArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedARMTemplateArtifact_Get.json @@ -1,68 +1,68 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedArtifact_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedArtifact_List.json index aa7c602d4650..81ff1870401a 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedArtifact_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedArtifact_List.json @@ -1,96 +1,100 @@ { - "parameters": { - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName": "ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "V2" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "ownerAssignment" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "ownerAssignment" + }, + { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "costCenterPolicy" + }, + { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "costCenterPolicy" - }, - { - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } - }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "storageTemplate" - } - ] - } - } + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "storageTemplate" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Delete.json index f74bacc0dcca..47ee059c711b 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Delete.json @@ -1,55 +1,55 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } } + }, + "targetScope": "subscription" }, - "204": {} - } -} \ No newline at end of file + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Get.json index 305e4fe21060..3eb6a3ca48cb 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Get.json @@ -1,54 +1,54 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_List.json index e569e710f596..a05fdf8697ee 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_List.json @@ -1,55 +1,55 @@ { - "parameters": { - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName": "ContosoOnlineGroup", - "blueprintName": "simpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "blueprintName": "simpleBlueprint", - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/v1", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v1" - } - ] - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "blueprintName": "simpleBlueprint", + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/v1", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v1" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Publish.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Publish.json index 1b9d22459b92..fb33e15223fd 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Publish.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedBlueprint_Publish.json @@ -1,54 +1,54 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "201": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedPolicyAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedPolicyAssignmentArtifact_Get.json index dbb2e4f512a2..23a8201111b4 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedPolicyAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedPolicyAssignmentArtifact_Get.json @@ -1,28 +1,32 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedRoleAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedRoleAssignmentArtifact_Get.json index a89b21b72a59..4b48bc374d93 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedRoleAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2017-11-11-preview/examples/SealedRoleAssignmentArtifact_Get.json @@ -1,25 +1,25 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "managementGroupsNamespace": "Microsoft.Management", - "managementGroupName":"ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "managementGroupsNamespace": "Microsoft.Management", + "managementGroupName": "ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "ownerAssignment" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.json index 30d1a8ac3608..d3a6e4459e9d 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.json @@ -112,7 +112,9 @@ "type": "object", "description": "Represents underlying deployment detail for each update to the blueprint assignment.", "allOf": [ - { "$ref": "#/definitions/AzureResourceBase" } + { + "$ref": "#/definitions/AzureResourceBase" + } ], "properties": { "properties": { @@ -122,7 +124,7 @@ } } }, - "AssignmentOperationList":{ + "AssignmentOperationList": { "type": "object", "description": "List of AssignmentOperation.", "properties": { @@ -139,7 +141,6 @@ "description": "Link to the next page of results." } } - }, "AssignmentOperationProperties": { "type": "object", @@ -242,10 +243,11 @@ } }, "allOf": [ - { "$ref": "#/definitions/AzureResourceBase" } + { + "$ref": "#/definitions/AzureResourceBase" + } ] }, - "AzureResourceBase": { "description": "Common properties for all Azure resources.", "type": "object", @@ -280,7 +282,6 @@ "type": "string", "description": "Error message." } - } } }, diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json index de0c3adc9c42..6c9ab4b8c4d7 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json @@ -164,7 +164,7 @@ "responses": { "200": { "description": "Blueprints service SPN objectId", - "schema":{ + "schema": { "$ref": "#/definitions/WhoIsBlueprintContract" } } @@ -225,7 +225,9 @@ "properties" ], "allOf": [ - { "$ref": "#/definitions/TrackedResource" } + { + "$ref": "#/definitions/TrackedResource" + } ] }, "AssignmentList": { @@ -251,7 +253,7 @@ "description": "User-assigned managed identity.", "properties": { "principalId": { - "type": "string", + "type": "string", "description": "Azure Active Directory principal ID associated with this Identity." }, "clientId": { @@ -301,10 +303,11 @@ "AssignmentStatus": { "description": "The status of a blueprint assignment. This field is readonly.", "type": "object", - "properties": { - }, + "properties": {}, "allOf": [ - { "$ref": "#/definitions/BlueprintResourceStatusBase" } + { + "$ref": "#/definitions/BlueprintResourceStatusBase" + } ] }, "AssignmentLockSettings": { @@ -417,9 +420,13 @@ "description": "Actual value." } }, - "required": [ "value" ], + "required": [ + "value" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretReferenceParameterValue": { @@ -431,9 +438,13 @@ "$ref": "#/definitions/SecretValueReference" } }, - "required": [ "reference" ], + "required": [ + "reference" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretValueReference": { @@ -467,7 +478,9 @@ "type": "string" } }, - "required": [ "id" ] + "required": [ + "id" + ] }, "ResourceGroupValueCollection": { "description": "A dictionary which maps resource group placeholders to the resource groups which will be created.", @@ -500,12 +513,19 @@ "location": { "type": "string", "description": "The location of this blueprint assignment.", - "x-ms-mutability": [ "read", "create" ] + "x-ms-mutability": [ + "read", + "create" + ] } }, - "required": [ "location" ], + "required": [ + "location" + ], "allOf": [ - { "$ref": "#/definitions/AzureResourceBase" } + { + "$ref": "#/definitions/AzureResourceBase" + } ] }, "AzureResourceBase": { @@ -552,7 +572,7 @@ "type": "object", "properties": { "timeCreated": { - "type": "string", + "type": "string", "format": "date-time", "readOnly": true, "description": "Creation time of this blueprint definition." @@ -565,7 +585,7 @@ } } }, - "WhoIsBlueprintContract":{ + "WhoIsBlueprintContract": { "description": "Response schema for querying the Azure Blueprints service principal in the tenant.", "properties": { "objectId": { @@ -602,4 +622,4 @@ "description": "Client API Version." } } -} \ No newline at end of file +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json index 8922d0632bc7..c0fa224da67f 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json @@ -830,12 +830,12 @@ "modelAsString": true, "values": [ { - "value": "subscription", - "description": "The blueprint targets a subscription during blueprint assignment." + "value": "subscription", + "description": "The blueprint targets a subscription during blueprint assignment." }, { - "value": "managementGroup", - "description": "The blueprint targets a management group during blueprint assignment. This is reserved for future use." + "value": "managementGroup", + "description": "The blueprint targets a management group during blueprint assignment. This is reserved for future use." } ] } @@ -860,7 +860,9 @@ "type": "object", "x-ms-external": true, "allOf": [ - { "$ref": "#/definitions/SharedBlueprintProperties" } + { + "$ref": "#/definitions/SharedBlueprintProperties" + } ], "properties": { "versions": { @@ -881,7 +883,9 @@ "type": "object", "x-ms-external": true, "allOf": [ - { "$ref": "#/definitions/SharedBlueprintProperties" } + { + "$ref": "#/definitions/SharedBlueprintProperties" + } ], "properties": { "blueprintName": { @@ -898,10 +902,11 @@ "BlueprintStatus": { "description": "The status of the blueprint. This field is readonly.", "type": "object", - "properties": { - }, + "properties": {}, "allOf": [ - { "$ref": "#/definitions/BlueprintResourceStatusBase" } + { + "$ref": "#/definitions/BlueprintResourceStatusBase" + } ] }, "TemplateArtifactProperties": { @@ -1080,9 +1085,13 @@ "description": "Actual value." } }, - "required": [ "value" ], + "required": [ + "value" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretReferenceParameterValue": { @@ -1094,9 +1103,13 @@ "$ref": "#/definitions/SecretValueReference" } }, - "required": [ "reference" ], + "required": [ + "reference" + ], "allOf": [ - { "$ref": "#/definitions/ParameterValueBase" } + { + "$ref": "#/definitions/ParameterValueBase" + } ] }, "SecretValueReference": { @@ -1130,7 +1143,9 @@ "type": "string" } }, - "required": [ "id" ] + "required": [ + "id" + ] }, "ParameterDefinitionCollection": { "description": "A dictionary hold parameter name and its metadata.", @@ -1338,7 +1353,7 @@ "properties": { "timeCreated": { "type": "string", - "format": "date-time", + "format": "date-time", "readOnly": true, "description": "Creation time of this blueprint definition." }, @@ -1352,7 +1367,7 @@ } }, "parameters": { - "ScopeParameter":{ + "ScopeParameter": { "name": "scope", "in": "path", "required": true, @@ -1394,4 +1409,4 @@ "description": "Client API Version." } } -} \ No newline at end of file +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_Get.json index 3a6c0b507eca..d8c4a3e967d0 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_Get.json @@ -1,49 +1,49 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint", - "assignmentOperationName":"fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f" - }, - "responses":{ - "200":{ - "body":{ - "id":"/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.blueprint/blueprintAssignments/assignSimpleBlueprint/assignmentOperations/fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", - "type": "microsoft.blueprint/blueprintAssignments/operations", - "name": "fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", - "properties": { - "blueprintVersion": "v20181101", - "assignmentState": "succeed", - "timeCreated": "2018-11-13T15:19:45-08:00", - "timeStarted": "2018-11-13T15:21:49-08:00", - "timeFinished": "2018-11-13T15:26:02-08:00", - "deployments":[ - { - "kind": "azureResource", - "action": "put", - "jobState": "succeeded", - "requestUri": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.deployments/deployments/48432786-2f1b-4925-8032-a5d57bcb5b6e", - "result": { - "resources": [ - { - "id": "blabla", - "name":"foobar", - "type":"foo/bar" - } - ] - }, - "history":[ - { - "error":{ - "code": "dummy", - "message":"dummy" - } - } - ] - } - ] + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint", + "assignmentOperationName": "fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.blueprint/blueprintAssignments/assignSimpleBlueprint/assignmentOperations/fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", + "type": "microsoft.blueprint/blueprintAssignments/operations", + "name": "fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", + "properties": { + "blueprintVersion": "v20181101", + "assignmentState": "succeed", + "timeCreated": "2018-11-13T15:19:45-08:00", + "timeStarted": "2018-11-13T15:21:49-08:00", + "timeFinished": "2018-11-13T15:26:02-08:00", + "deployments": [ + { + "kind": "azureResource", + "action": "put", + "jobState": "succeeded", + "requestUri": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.deployments/deployments/48432786-2f1b-4925-8032-a5d57bcb5b6e", + "result": { + "resources": [ + { + "id": "blabla", + "name": "foobar", + "type": "foo/bar" + } + ] + }, + "history": [ + { + "error": { + "code": "dummy", + "message": "dummy" + } } + ] } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_List.json index 040bc621dc99..9fa030384d02 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_List.json @@ -1,51 +1,53 @@ { - "parameters": { - "api-version": "2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName": "assignSimpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value":[{ - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.blueprint/blueprintAssignments/assignSimpleBlueprint/assignmentOperations/fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", - "type": "microsoft.blueprint/blueprintAssignments/operations", - "name": "fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", - "properties": { - "blueprintVersion": "v20181101", - "assignmentState": "succeed", - "timeCreated": "2018-11-13T15:19:45-08:00", - "timeStarted": "2018-11-13T15:21:49-08:00", - "timeFinished": "2018-11-13T15:26:02-08:00", - "deployments": [ - { - "kind": "azureResource", - "action": "put", - "jobState": "succeeded", - "requestUri": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.deployments/deployments/48432786-2f1b-4925-8032-a5d57bcb5b6e", - "result": { - "resources": [ - { - "id": "blabla", - "name": "foobar", - "type": "foo/bar" - } - ] - }, - "history": [ - { - "error": { - "code": "dummy", - "message": "dummy" - } - } - ] - } - ] + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.blueprint/blueprintAssignments/assignSimpleBlueprint/assignmentOperations/fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", + "type": "microsoft.blueprint/blueprintAssignments/operations", + "name": "fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", + "properties": { + "blueprintVersion": "v20181101", + "assignmentState": "succeed", + "timeCreated": "2018-11-13T15:19:45-08:00", + "timeStarted": "2018-11-13T15:21:49-08:00", + "timeFinished": "2018-11-13T15:26:02-08:00", + "deployments": [ + { + "kind": "azureResource", + "action": "put", + "jobState": "succeeded", + "requestUri": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.deployments/deployments/48432786-2f1b-4925-8032-a5d57bcb5b6e", + "result": { + "resources": [ + { + "id": "blabla", + "name": "foobar", + "type": "foo/bar" + } + ] + }, + "history": [ + { + "error": { + "code": "dummy", + "message": "dummy" + } } - }], - "nextLink":null + ] + } + ] } - } + } + ], + "nextLink": null + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Create.json index 9b140c307da4..ade7563a545d 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Create.json @@ -1,77 +1,77 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint", - "assignment":{ - "identity":{ - "type": "SystemAssigned" + "parameters": { + "api-version": "2017-11-11-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint", + "assignment": { + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] + } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "creating", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] } - } - }, - "responses":{ - "201":{ - "body":{ - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "creating", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" } - } + } + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Delete.json index 6b2bb85879a5..d5fb232acd5e 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Delete.json @@ -1,48 +1,48 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint" - }, - "responses":{ - "202":{ - "body":{ - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "deleting", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" + "parameters": { + "api-version": "2017-11-11-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint" + }, + "responses": { + "202": { + "body": { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "deleting", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } }, - "204":{} - } -} \ No newline at end of file + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Get.json index 1d1f5e06054a..ea529aed1146 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_Get.json @@ -1,47 +1,47 @@ { - "parameters":{ - "api-version":"2017-11-11-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "assignmentName":"assignSimpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "succeed", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" + "parameters": { + "api-version": "2017-11-11-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "assignmentName": "assignSimpleBlueprint" + }, + "responses": { + "200": { + "body": { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "succeed", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] } - } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_List.json index 1cb07a7dcd6d..ac555717d394 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignment_List.json @@ -1,50 +1,50 @@ { - "parameters": { - "api-version":"2017-11-11-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "identity":{ - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "location": "eastus", - "properties": { - "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", - "provisioningState": "failed", - "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "parameters": { - "storageAccountType": { - "value": "Standard_LRS" - }, - "costCenter": { - "value": "Contoso/Online/Shopping/Production" - }, - "owners": { - "value": [ - "johnDoe@contoso.com", - "johnsteam@contoso.com" - ] - } - }, - "resourceGroups": { - "storageRG": { - "name": "defaultRG", - "location": "eastus" - } - } - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", - "type": "Microsoft.Blueprint/Assignment", - "name": "assignSimpleBlueprint" - } - ] - } - } + "parameters": { + "api-version": "2017-11-11-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "identity": { + "type": "SystemAssigned", + "tenantId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000" + }, + "location": "eastus", + "properties": { + "description": "enforce pre-defined simpleBlueprint to this XXXXXXXX subscription.", + "provisioningState": "failed", + "blueprintId": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "parameters": { + "storageAccountType": { + "value": "Standard_LRS" + }, + "costCenter": { + "value": "Contoso/Online/Shopping/Production" + }, + "owners": { + "value": [ + "johnDoe@contoso.com", + "johnsteam@contoso.com" + ] + } + }, + "resourceGroups": { + "storageRG": { + "name": "defaultRG", + "location": "eastus" + } + } + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint", + "type": "Microsoft.Blueprint/Assignment", + "name": "assignSimpleBlueprint" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/ResourceGroupWithTags.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/ResourceGroupWithTags.json index 31b0610ba6e8..e4043485859d 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/ResourceGroupWithTags.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/ResourceGroupWithTags.json @@ -1,59 +1,58 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/{ManagementGroupId}", - "blueprintName":"simpleBlueprint", - "blueprint":{ - "properties": { - "targetScope": "subscription", - "resourceGroups": { - "myRGName": { - "name": "myRGName", - "location": "westus", - "metadata":{ - "displayName": "My Resource Group" - }, - "tags": { - "costcenter": "123456", - "nameOnlyTag": "" - } - } - }, - "description": "An example blueprint containing an RG with two tags." + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/{ManagementGroupId}", + "blueprintName": "simpleBlueprint", + "blueprint": { + "properties": { + "targetScope": "subscription", + "resourceGroups": { + "myRGName": { + "name": "myRGName", + "location": "westus", + "metadata": { + "displayName": "My Resource Group" + }, + "tags": { + "costcenter": "123456", + "nameOnlyTag": "" } - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "parameters": {}, - "resourceGroups": { - "myRGName": { - "name": "myRGName", - "location": "westus", - "metadata": { - "displayName": "My Resource Group" - }, - "dependsOn": [], - "tags": { - "costcenter": "123456", - "tagWithNoValue": "" - } - } - }, - "targetScope": "subscription", - "status": { - "timeCreated": "2019-04-29T20:52:56+00:00", - "lastModified": "2019-04-29T20:52:56+00:00" - }, - "description": "An example blueprint containing an RG with two tags." - }, - "id": "/providers/Microsoft.Management/managementGroups/{ManagementGroupId}/providers/Microsoft.Blueprint/blueprints/RGTaggingExample", - "type": "Microsoft.Blueprint/blueprints", - "name": "RGTaggingExample" + } + }, + "description": "An example blueprint containing an RG with two tags." + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "parameters": {}, + "resourceGroups": { + "myRGName": { + "name": "myRGName", + "location": "westus", + "metadata": { + "displayName": "My Resource Group" + }, + "dependsOn": [], + "tags": { + "costcenter": "123456", + "tagWithNoValue": "" + } } - } + }, + "targetScope": "subscription", + "status": { + "timeCreated": "2019-04-29T20:52:56+00:00", + "lastModified": "2019-04-29T20:52:56+00:00" + }, + "description": "An example blueprint containing an RG with two tags." + }, + "id": "/providers/Microsoft.Management/managementGroups/{ManagementGroupId}/providers/Microsoft.Blueprint/blueprints/RGTaggingExample", + "type": "Microsoft.Blueprint/blueprints", + "name": "RGTaggingExample" + } } + } } - \ No newline at end of file diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/WhoIsBlueprint_Action.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/WhoIsBlueprint_Action.json index 034e791371ba..af091e60df7e 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/WhoIsBlueprint_Action.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/WhoIsBlueprint_Action.json @@ -7,8 +7,8 @@ "responses": { "200": { "body": { - "objectId" : "00000000-0000-0000-0000-000000000000" + "objectId": "00000000-0000-0000-0000-000000000000" } } } -} \ No newline at end of file +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Create.json index e560785ca8f7..26802617e3df 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Create.json @@ -1,117 +1,117 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate", - "artifact":{ - "kind": "template", - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate", + "artifact": { + "kind": "template", + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" + }, + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Delete.json index 1406b77205f3..affb61dea0e6 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Delete.json @@ -1,67 +1,67 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" } + } }, - "204":{} - } -} \ No newline at end of file + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Get.json index 11328862142e..4dec5a77699b 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/ARMTemplateArtifact_Get.json @@ -1,66 +1,66 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Artifact_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Artifact_List.json index b1057dead343..35f1b9582e31 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Artifact_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Artifact_List.json @@ -1,94 +1,98 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + }, + { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + }, + { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" - }, - { - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } - }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" - } - ] - } - } + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Create.json index 6155ea5f752c..31864627c4b9 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Create.json @@ -1,85 +1,85 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "blueprint":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "blueprint": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." } - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." } - } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Delete.json index b0fddc400575..e8e55d681595 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Delete.json @@ -1,50 +1,50 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } } + }, + "targetScope": "subscription", + "status": null }, - "204":{} - } -} \ No newline at end of file + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Get.json index 1b41b5fa716a..49737370ad56 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_Get.json @@ -1,49 +1,49 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_List.json index 8c1ebdfe3475..949b534293d8 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_List.json @@ -1,52 +1,52 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" - } - ] - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Create.json index ae0f1482570f..055905986a49 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Create.json @@ -1,37 +1,45 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy", - "artifact":{ - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy", + "artifact": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } } - }, - "responses":{ - "201":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + }, + "kind": "policyAssignment" + } + }, + "responses": { + "201": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Delete.json index e6b6120c0d8c..489ae3b6820e 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Delete.json @@ -1,27 +1,31 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } + } }, - "204":{} - } -} \ No newline at end of file + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Get.json index 1f50fdf33866..5d38282dab76 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/PolicyAssignmentArtifact_Get.json @@ -1,26 +1,30 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Create.json index c3bf4529d966..4c3cac4dda7e 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Create.json @@ -1,31 +1,31 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment", - "artifact":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment" - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment", + "artifact": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment" } + }, + "responses": { + "201": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } + } + } } diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Delete.json index 322ab102b875..d82956d613cc 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Delete.json @@ -1,24 +1,24 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" }, - "204":{} - } -} \ No newline at end of file + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Get.json index b66f195308bc..0640a05f2e85 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/RoleAssignmentArtifact_Get.json @@ -1,23 +1,23 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedARMTemplateArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedARMTemplateArtifact_Get.json index a0a022a7db01..6ed509d52cef 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedARMTemplateArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedARMTemplateArtifact_Get.json @@ -1,67 +1,67 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedArtifact_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedArtifact_List.json index 341c5304e9b2..b53282c2fcc9 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedArtifact_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedArtifact_List.json @@ -1,95 +1,99 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "V2" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "ownerAssignment" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "ownerAssignment" + }, + { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "costCenterPolicy" + }, + { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "costCenterPolicy" - }, - { - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } - }, - "kind": "template", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "storageTemplate" - } - ] - } - } + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "storageTemplate" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Delete.json index e502efe08429..83fdd19d88aa 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Delete.json @@ -1,54 +1,54 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } } + }, + "targetScope": "subscription" }, - "204": {} - } -} \ No newline at end of file + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Get.json index 1d3618dd43f7..11293243cc88 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Get.json @@ -1,53 +1,53 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_List.json index 9238f5621f01..79526cf10857 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_List.json @@ -1,54 +1,54 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName": "simpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "blueprintName": "simpleBlueprint", - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/v1", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v1" - } - ] - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "blueprintName": "simpleBlueprint", + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/v1", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v1" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Publish.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Publish.json index e5a72160fecc..c8412c2bef01 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Publish.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_Publish.json @@ -1,53 +1,53 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "201": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedPolicyAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedPolicyAssignmentArtifact_Get.json index 6c7ddcac8fd2..8c0cca672857 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedPolicyAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedPolicyAssignmentArtifact_Get.json @@ -1,27 +1,31 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedRoleAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedRoleAssignmentArtifact_Get.json index 18ae13b1b62c..767e270fa3a5 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedRoleAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedRoleAssignmentArtifact_Get.json @@ -1,24 +1,24 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/providers/Microsoft.Management/managementGroups/ContosoOnlineGroup/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "ownerAssignment" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Create.json index 5c7ed4abb3dd..cb090cf3a347 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Create.json @@ -1,117 +1,117 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate", - "artifact":{ - "kind": "template", - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate", + "artifact": { + "kind": "template", + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" + }, + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Delete.json index 679ff9cd5a5c..049caa06d20d 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Delete.json @@ -1,67 +1,67 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" } + } }, - "204":{} - } -} \ No newline at end of file + "kind": "template", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Get.json index 6f82f380d90e..73a05618dc6b 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/ARMTemplateArtifact_Get.json @@ -1,66 +1,66 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Artifact_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Artifact_List.json index 9bf40050ffb2..cca70d10d24b 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Artifact_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Artifact_List.json @@ -1,94 +1,98 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + }, + { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } + } + }, + "kind": "policyAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + }, + { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" - }, - { - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } - }, - "kind": "template", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "storageTemplate" - } - ] - } - } + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "storageTemplate" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Create.json index 73134ab2e9ae..26b221200fa7 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Create.json @@ -1,85 +1,85 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "blueprint":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "blueprint": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." } - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." } - } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Delete.json index 81020eb24f55..1a2357c6be83 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Delete.json @@ -1,50 +1,50 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } } + }, + "targetScope": "subscription", + "status": null }, - "204":{} - } -} \ No newline at end of file + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Get.json index f7d1ffaa3730..8539596063a7 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_Get.json @@ -1,49 +1,49 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_List.json index 55a531a09331..ebb99045b996 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/Blueprint_List.json @@ -1,52 +1,52 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints", - "name": "simpleBlueprint" - } - ] - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints", + "name": "simpleBlueprint" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Create.json index cd1501ec5f6c..c5d64f13d1a3 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Create.json @@ -1,37 +1,45 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy", - "artifact":{ - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy", + "artifact": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } } - }, - "responses":{ - "201":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + }, + "kind": "policyAssignment" + } + }, + "responses": { + "201": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Delete.json index 959156266eda..e2833bc396a2 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Delete.json @@ -1,27 +1,31 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } + } }, - "204":{} - } -} \ No newline at end of file + "kind": "policyAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Get.json index 3773dc72c8e2..2aa9b4603626 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/PolicyAssignmentArtifact_Get.json @@ -1,26 +1,30 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Create.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Create.json index 468b98798c6c..aa09e4cd4004 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Create.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Create.json @@ -1,31 +1,31 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment", - "artifact":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment" - } - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment", + "artifact": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment" } + }, + "responses": { + "201": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } + } + } } diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Delete.json index f471ac446c3c..ba2a47907d1c 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Delete.json @@ -1,24 +1,24 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" }, - "204":{} - } -} \ No newline at end of file + "kind": "roleAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Get.json index 30b15fd71937..dc6499d168c4 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/RoleAssignmentArtifact_Get.json @@ -1,23 +1,23 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/artifacts", + "name": "ownerAssignment" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedARMTemplateArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedARMTemplateArtifact_Get.json index 17bee60a52bb..32d5da5af37b 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedARMTemplateArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedARMTemplateArtifact_Get.json @@ -1,67 +1,67 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "storageTemplate" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "storageTemplate" + }, + "responses": { + "200": { + "body": { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - "kind": "template", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "storageTemplate" + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } } - } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "storageTemplate" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedArtifact_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedArtifact_List.json index e3f053d5e4fb..ed1f23bf8939 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedArtifact_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedArtifact_List.json @@ -1,95 +1,99 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId": "V2" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "ownerAssignment" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "V2" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "ownerAssignment" + }, + { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" + } + } + }, + "kind": "policyAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "costCenterPolicy" + }, + { + "properties": { + "template": { + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccountType": { + "type": "string", + "defaultValue": "Standard_LRS", + "allowedValues": [ + "Standard_LRS", + "Standard_GRS", + "Standard_ZRS", + "Premium_LRS" + ], + "metadata": { + "description": "Storage Account type" + } + } + }, + "variables": { + "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "name": "[variables('storageAccountName')]", + "apiVersion": "2016-01-01", + "location": "[resourceGroup().location]", + "sku": { + "name": "[parameters('storageAccountType')]" }, - { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "costCenterPolicy" - }, - { - "properties": { - "template": { - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountType": { - "type": "string", - "defaultValue": "Standard_LRS", - "allowedValues": [ - "Standard_LRS", - "Standard_GRS", - "Standard_ZRS", - "Premium_LRS" - ], - "metadata": { - "description": "Storage Account type" - } - } - }, - "variables": { - "storageAccountName": "[concat(uniquestring(resourceGroup().id), 'standardsa')]" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[variables('storageAccountName')]", - "apiVersion": "2016-01-01", - "location": "[resourceGroup().location]", - "sku": { - "name": "[parameters('storageAccountType')]" - }, - "kind": "Storage", - "properties": {} - } - ], - "outputs": { - "storageAccountName": { - "type": "string", - "value": "[variables('storageAccountName')]" - } - } - }, - "resourceGroup": "storageRG", - "parameters": { - "storageAccountType": { - "value": "[parameters('storageAccountType')]" - } - } - }, - "kind": "template", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "storageTemplate" - } - ] - } - } + "kind": "Storage", + "properties": {} + } + ], + "outputs": { + "storageAccountName": { + "type": "string", + "value": "[variables('storageAccountName')]" + } + } + }, + "resourceGroup": "storageRG", + "parameters": { + "storageAccountType": { + "value": "[parameters('storageAccountType')]" + } + } + }, + "kind": "template", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/storageTemplate", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "storageTemplate" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Delete.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Delete.json index b584ffbf1366..97114fa52d15 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Delete.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Delete.json @@ -1,54 +1,54 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } } + }, + "targetScope": "subscription" }, - "204": {} - } -} \ No newline at end of file + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } + }, + "204": {} + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Get.json index d8a64f893572..05dbf10757e6 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Get.json @@ -1,53 +1,53 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_List.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_List.json index b04c59eb4ce3..a4897d774699 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_List.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_List.json @@ -1,54 +1,54 @@ { - "parameters": { - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName": "simpleBlueprint" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "blueprintName": "simpleBlueprint", - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type." - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription." - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment." - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription", - "status": null - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/v1", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v1" - } - ] - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "blueprintName": "simpleBlueprint", + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type." + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription." + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment." + } + } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription", + "status": null + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/v1", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v1" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Publish.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Publish.json index 4471959bcc62..f232cca9cb7a 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Publish.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedBlueprint_Publish.json @@ -1,53 +1,53 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId": "v2" - }, - "responses":{ - "201":{ - "body":{ - "properties": { - "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", - "blueprintName":"simpleBlueprint", - "parameters": { - "storageAccountType": { - "type": "string", - "metadata": { - "displayName": "storage account type.", - "description": null - } - }, - "costCenter": { - "type": "string", - "metadata": { - "displayName": "force cost center tag for all resources under given subscription.", - "description": null - } - }, - "owners": { - "type": "array", - "metadata": { - "displayName": "assign owners to subscription along with blueprint assignment.", - "description": null - } - } - }, - "resourceGroups": { - "storageRG": { - "metadata":{ - "displayName": "storage resource group", - "description": "Contains storageAccounts that collect all shoebox logs." - } - } - }, - "targetScope": "subscription" - }, - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", - "type": "Microsoft.Blueprint/blueprints/versions", - "name": "v2" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "v2" + }, + "responses": { + "201": { + "body": { + "properties": { + "description": "blueprint contains all artifact kinds {'template', 'rbac', 'policy'}", + "blueprintName": "simpleBlueprint", + "parameters": { + "storageAccountType": { + "type": "string", + "metadata": { + "displayName": "storage account type.", + "description": null + } + }, + "costCenter": { + "type": "string", + "metadata": { + "displayName": "force cost center tag for all resources under given subscription.", + "description": null + } + }, + "owners": { + "type": "array", + "metadata": { + "displayName": "assign owners to subscription along with blueprint assignment.", + "description": null + } } - } + }, + "resourceGroups": { + "storageRG": { + "metadata": { + "displayName": "storage resource group", + "description": "Contains storageAccounts that collect all shoebox logs." + } + } + }, + "targetScope": "subscription" + }, + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint", + "type": "Microsoft.Blueprint/blueprints/versions", + "name": "v2" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedPolicyAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedPolicyAssignmentArtifact_Get.json index cad36be6b4d9..34e8377d08de 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedPolicyAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedPolicyAssignmentArtifact_Get.json @@ -1,27 +1,31 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "costCenterPolicy" - }, - "responses":{ - "200":{ - "body": { - "properties": { - "displayName": "force costCenter tag on all resources", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", - "parameters": { - "tagName": { "value": "costCenter" }, - "tagValue": { "value": "[parameter('costCenter')]" } - } - }, - "kind": "policyAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "costCenterPolicy" + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "costCenterPolicy" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "force costCenter tag on all resources", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62", + "parameters": { + "tagName": { + "value": "costCenter" + }, + "tagValue": { + "value": "[parameter('costCenter')]" } - } + } + }, + "kind": "policyAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/costCenterPolicy", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "costCenterPolicy" + } } -} \ No newline at end of file + } +} diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedRoleAssignmentArtifact_Get.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedRoleAssignmentArtifact_Get.json index 73c0e6253c9c..4b224b7d40ea 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedRoleAssignmentArtifact_Get.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/subscriptionBPDef/SealedRoleAssignmentArtifact_Get.json @@ -1,24 +1,24 @@ { - "parameters":{ - "api-version":"2018-11-01-preview", - "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", - "blueprintName":"simpleBlueprint", - "versionId":"V2", - "artifactName": "ownerAssignment" - }, - "responses":{ - "200":{ - "body":{ - "properties": { - "displayName": "enforce owners of given subscription", - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalIds": "[parameters('owners')]" - }, - "kind": "roleAssignment", - "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", - "type": "Microsoft.Blueprint/blueprints/versions/artifacts", - "name": "ownerAssignment" - } - } + "parameters": { + "api-version": "2018-11-01-preview", + "scope": "subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", + "blueprintName": "simpleBlueprint", + "versionId": "V2", + "artifactName": "ownerAssignment" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "enforce owners of given subscription", + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalIds": "[parameters('owners')]" + }, + "kind": "roleAssignment", + "id": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/versions/V2/artifacts/ownerAssignment", + "type": "Microsoft.Blueprint/blueprints/versions/artifacts", + "name": "ownerAssignment" + } } -} \ No newline at end of file + } +}