-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
253ae60
commit 0737a48
Showing
3 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
.../resource-manager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-05-01", | ||
"parameters": { | ||
"resources": [ | ||
"*" | ||
], | ||
"options": "IncludeParameterDefaultValue,IncludeComments" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"myResourceType_myFirstResource_name": { | ||
"defaultValue": "myFirstResource", | ||
"type": "String" | ||
}, | ||
"myResourceType_mySecondResource_name": { | ||
"defaultValue": "mySecondResource", | ||
"type": "String" | ||
}, | ||
"myResourceType_myFirstResource_secret": { | ||
"defaultValue": null, | ||
"type": "SecureString" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "My.RP/myResourceType", | ||
"apiVersion": "2019-01-01", | ||
"name": "[parameters('myResourceType_myFirstResource_name')]", | ||
"location": "West US", | ||
"properties": { | ||
"secret": "[parameters('myResourceType_myFirstResource_secret')]" | ||
} | ||
}, | ||
{ | ||
"type": "My.RP/myResourceType", | ||
"apiVersion": "2019-01-01", | ||
"name": "[parameters('myResourceType_mySecondResource_name')]", | ||
"location": "West US", | ||
"properties": { | ||
"customProperty": "hello!" | ||
} | ||
} | ||
] | ||
}, | ||
"error": { | ||
"code": "ExportTemplateCompletedWithErrors", | ||
"message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.", | ||
"details": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...ager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroupWithFiltering.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-05-01", | ||
"parameters": { | ||
"resources": [ | ||
"/subscriptions/eaee6a92-e973-4922-9471-3a0a6abf81cd/resourceGroups/myResourceGroup/providers/My.RP/myResourceType/myFirstResource" | ||
], | ||
"options": "SkipResourceNameParameterization" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"myResourceType_myFirstResource_secret": { | ||
"defaultValue": null, | ||
"type": "SecureString" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "My.RP/myResourceType", | ||
"apiVersion": "2019-01-01", | ||
"name": "myFirstResource", | ||
"location": "West US", | ||
"properties": { | ||
"secret": "[parameters('myResourceType_myFirstResource_secret')]" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters