Skip to content

Commit

Permalink
Introduce Microsoft.Resources/snapshots (Azure#20921)
Browse files Browse the repository at this point in the history
* Add new snapshots type

* Readme

* Readme typo

* suppressions

* readme

* Preview

* Make augmented properties siblings of the original ARM resource

* Snapshot

* prettier

* fix examples

* comments

* comments

* comments
  • Loading branch information
dhu5432 authored and anandanthony committed Dec 16, 2022
1 parent c50273a commit acf8321
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"parameters": {
"subscriptionId": "subscriptionId1",
"resourceGroupName": "resourceGroup1",
"resourceProviderNamespace": "resourceProvider1",
"resourceType": "resourceType1",
"resourceName": "resourceName1",
"api-version": "2022-11-01-preview",
"snapshotId": "snapshotId1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/snapshots/snapshotId1",
"name": "snapshotId1",
"type": "Microsoft.Resources/snapshots",
"properties": {
"apiVersion": "2022-05-01",
"content": {
"sku": {
"name": "Standard_GZRS",
"tier": "Standard"
},
"kind": "StorageV2",
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1",
"name": "resourceName1",
"type": "resourceProvider1/resourceType1",
"location": "eastus",
"tags": {
"aaa": "aaaa",
"dfasdf": "dfsadfsf"
},
"properties": {
"defaultToOAuthAuthentication": false,
"keyCreationTime": {
"key1": "2021-04-15T20:12:24.1028866Z",
"key2": "2021-04-15T19:58:00.3691784Z"
},
"privateEndpointConnections": [],
"minimumTlsVersion": "TLS1_0",
"allowBlobPublicAccess": true,
"allowSharedKeyAccess": true,
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z"
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot",
"provisioningState": "Succeeded",
"creationTime": "2021-04-15T19:58:00.2285507Z",
"primaryEndpoints": {
"dfs": "https://resourceName1.dfs.core.windows.net/",
"web": "https://resourceName1.z13.web.core.windows.net/",
"blob": "https://resourceName1.blob.core.windows.net/",
"queue": "https://resourceName1.queue.core.windows.net/",
"table": "https://resourceName1.table.core.windows.net/",
"file": "https://resourceName1.file.core.windows.net/"
},
"primaryLocation": "eastus",
"statusOfPrimary": "available",
"lastGeoFailoverTime": "2022-07-21T22:11:20.3670939Z",
"secondaryLocation": "westus",
"statusOfSecondary": "available"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"parameters": {
"subscriptionId": "subscriptionId1",
"resourceGroupName": "resourceGroup1",
"resourceProviderNamespace": "resourceProvider1",
"resourceType": "resourceType1",
"resourceName": "resourceName1",
"api-version": "2022-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/snapshots/snapshotId1",
"name": "snapshotId1",
"type": "Microsoft.Resources/snapshots",
"properties": {
"apiVersion": "2022-05-01",
"content": {
"sku": {
"name": "Standard_GZRS",
"tier": "Standard"
},
"kind": "StorageV2",
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1",
"name": "resourceName1",
"type": "resourceProvider1/resourceType1",
"location": "eastus",
"tags": {
"aaa": "aaaa",
"dfasdf": "dfsadfsf"
},
"properties": {
"defaultToOAuthAuthentication": false,
"keyCreationTime": {
"key1": "2021-04-15T20:12:24.1028866Z",
"key2": "2021-04-15T19:58:00.3691784Z"
},
"privateEndpointConnections": [],
"minimumTlsVersion": "TLS1_0",
"allowBlobPublicAccess": true,
"allowSharedKeyAccess": true,
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z"
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot",
"provisioningState": "Succeeded",
"creationTime": "2021-04-15T19:58:00.2285507Z",
"primaryEndpoints": {
"dfs": "https://resourceName1.dfs.core.windows.net/",
"web": "https://resourceName1.z13.web.core.windows.net/",
"blob": "https://resourceName1.blob.core.windows.net/",
"queue": "https://resourceName1.queue.core.windows.net/",
"table": "https://resourceName1.table.core.windows.net/",
"file": "https://resourceName1.file.core.windows.net/"
},
"primaryLocation": "eastus",
"statusOfPrimary": "available",
"lastGeoFailoverTime": "2022-07-21T22:11:20.3670939Z",
"secondaryLocation": "westus",
"statusOfSecondary": "available"
}
}
}
},
{
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/snapshots/snapshotId2",
"name": "snapshotId2",
"type": "Microsoft.Resources/snapshots",
"properties": {
"apiVersion": "2022-05-01",
"content": {
"sku": {
"name": "Standard_GZRS",
"tier": "Standard"
},
"kind": "StorageV2",
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1",
"name": "resourceName1",
"type": "resourceProvider1/resourceType1",
"location": "eastus",
"tags": {
"aaa": "aaaa",
"dfasdf": "dfsadfsf"
},
"properties": {
"defaultToOAuthAuthentication": false,
"keyCreationTime": {
"key1": "2021-04-15T20:12:24.1028866Z",
"key2": "2021-04-15T19:58:00.3691784Z"
},
"privateEndpointConnections": [],
"minimumTlsVersion": "TLS1_0",
"allowBlobPublicAccess": true,
"allowSharedKeyAccess": true,
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z"
},
"blob": {
"keyType": "Account",
"enabled": true,
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z"
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot",
"provisioningState": "Succeeded",
"creationTime": "2021-04-15T19:58:00.2285507Z",
"primaryEndpoints": {
"dfs": "https://resourceName1.dfs.core.windows.net/",
"web": "https://resourceName1.z13.web.core.windows.net/",
"blob": "https://resourceName1.blob.core.windows.net/",
"queue": "https://resourceName1.queue.core.windows.net/",
"table": "https://resourceName1.table.core.windows.net/",
"file": "https://resourceName1.file.core.windows.net/"
},
"primaryLocation": "eastus",
"statusOfPrimary": "available",
"lastGeoFailoverTime": "2022-07-21T22:11:20.3670939Z",
"secondaryLocation": "westus",
"statusOfSecondary": "available"
}
}
}
}
]
}
}
}
}
Loading

0 comments on commit acf8321

Please sign in to comment.