diff --git a/src/Compute/Compute.Test/Compute.Test.csproj b/src/Compute/Compute.Test/Compute.Test.csproj index 8f6bbbf7bca6..a4643d57d951 100644 --- a/src/Compute/Compute.Test/Compute.Test.csproj +++ b/src/Compute/Compute.Test/Compute.Test.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/Compute/Compute.Test/ScenarioTests/GalleryTests.cs b/src/Compute/Compute.Test/ScenarioTests/GalleryTests.cs index f0f9fe472296..8857fcf9f3e2 100644 --- a/src/Compute/Compute.Test/ScenarioTests/GalleryTests.cs +++ b/src/Compute/Compute.Test/ScenarioTests/GalleryTests.cs @@ -51,5 +51,11 @@ public void TestGalleryImageVersionDiskImage() { TestRunner.RunTestScript("Test-GalleryImageVersionDiskImage"); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGalleryDirectSharing() + { + TestRunner.RunTestScript("Test-GalleryDirectSharing"); + } } } \ No newline at end of file diff --git a/src/Compute/Compute.Test/ScenarioTests/GalleryTests.ps1 b/src/Compute/Compute.Test/ScenarioTests/GalleryTests.ps1 index 6f55ae925621..70319a8669ee 100644 --- a/src/Compute/Compute.Test/ScenarioTests/GalleryTests.ps1 +++ b/src/Compute/Compute.Test/ScenarioTests/GalleryTests.ps1 @@ -709,3 +709,48 @@ function Test-GalleryImageVersionDiskImage Clean-ResourceGroup $rgname } } + +function Test-GalleryDirectSharing +{ + # Setup + $rgname = Get-ComputeTestResourceName; + $galleryName = 'gallery' + $rgname; + + try + { + $loc = 'eastus' + New-AzResourceGroup -Name $rgname -Location $loc -Force; + + # create gallery with permissions groups + New-AzGallery -ResourceGroupName $rgname -Location $loc -Name $galleryName -Permission 'Groups' + + # get that gallery check for SharingProfile + $gal = Get-AzGallery -ResourceGroupName $rgname -Name $galleryName -Expand 'SharingProfile/Groups' + Assert-AreEqual $gal.sharingProfile.Permissions 'Groups' + + # Add 2 subscriptions to share with + $gal = Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission 'Groups' -Share -Subscription '88fd8cb2-8248-499e-9a2d-4929a4b0133c','54b875cc-a81a-4914-8bfd-1a36bc7ddf4d' + + # check + Assert-AreEqual $gal.SharingProfile.Groups[0].Type 'Subscriptions' + Assert-AreEqual $gal.SharingProfile.Groups[0].Ids.count 2 + + # remove 1 + $gal = Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission 'Groups' -Share -RemoveSubscription '88fd8cb2-8248-499e-9a2d-4929a4b0133c' + + # check + Assert-AreEqual $gal.SharingProfile.Groups[0].Type 'Subscriptions' + Assert-AreEqual $gal.SharingProfile.Groups[0].Ids.count 1 + + # Reset that gallery + $gal = Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Share -Reset + + # check + Assert-AreEqual $gal.SharingProfile.Permissions 'Private' + } + finally + { + # Cleanup + Clean-ResourceGroup $rgname + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.GalleryTests/TestGalleryDirectSharing.json b/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.GalleryTests/TestGalleryDirectSharing.json new file mode 100644 index 000000000000..7a974ff97fa5 --- /dev/null +++ b/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.GalleryTests/TestGalleryDirectSharing.json @@ -0,0 +1,2242 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourcegroups/crptestps8253?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlZ3JvdXBzL2NycHRlc3RwczgyNTM/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e4341e30-bc7a-4c52-ba5c-3069ec286deb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c6819d77-b160-4462-b94c-cea249e002e6" + ], + "x-ms-correlation-request-id": [ + "c6819d77-b160-4462-b94c-cea249e002e6" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024611Z:c6819d77-b160-4462-b94c-cea249e002e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:10 GMT" + ], + "Content-Length": [ + "179" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253\",\r\n \"name\": \"crptestps8253\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n }\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2bd554f-c39a-4c54-bb5a-248d3dfccef0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "116" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/5de4e082-2d36-4144-bd32-8d861c588c2d?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/CreateUpdateGallery3Min;47,Microsoft.Compute/CreateUpdateGallery30Min;296" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "5de4e082-2d36-4144-bd32-8d861c588c2d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "68e524f3-7dec-49ca-9817-4ab161b1c2c4" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024615Z:68e524f3-7dec-49ca-9817-4ab161b1c2c4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:14 GMT" + ], + "Content-Length": [ + "493" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"identifier\": {},\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n }\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "139" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/306438c5-d2ae-4eba-ab93-d1f7e928e59a?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/CreateUpdateGallery3Min;46,Microsoft.Compute/CreateUpdateGallery30Min;295" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "306438c5-d2ae-4eba-ab93-d1f7e928e59a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "2f041480-4a61-4ba2-9d40-1195b28b3a73" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024647Z:2f041480-4a61-4ba2-9d40-1195b28b3a73" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:47 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"identifier\": {},\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n }\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "139" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/98039a15-a952-449b-889e-314782c61ab5?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/CreateUpdateGallery3Min;46,Microsoft.Compute/CreateUpdateGallery30Min;294" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "98039a15-a952-449b-889e-314782c61ab5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "33ef4597-8f7c-4365-9133-ff79b4dedb3f" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024720Z:33ef4597-8f7c-4365-9133-ff79b4dedb3f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:20 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"identifier\": {},\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n }\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "139" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/0799c57f-c8b7-4fa6-8cb1-abc81af85d42?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/CreateUpdateGallery3Min;46,Microsoft.Compute/CreateUpdateGallery30Min;293" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "0799c57f-c8b7-4fa6-8cb1-abc81af85d42" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d329c6ea-7300-4d48-99fb-34dacebc7ed2" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024752Z:d329c6ea-7300-4d48-99fb-34dacebc7ed2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:51 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/5de4e082-2d36-4144-bd32-8d861c588c2d?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zLzVkZTRlMDgyLTJkMzYtNDE0NC1iZDMyLThkODYxYzU4OGMyZD9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2bd554f-c39a-4c54-bb5a-248d3dfccef0" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1194,Microsoft.Compute/GetOperationStatus30Min;4192" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "a7324735-b47f-45dc-a242-206d049f7980" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "8075e742-cc28-42e2-a4d3-3ada37db16ca" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024645Z:8075e742-cc28-42e2-a4d3-3ada37db16ca" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:44 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2022-03-10T20:46:14.7298027-06:00\",\r\n \"endTime\": \"2022-03-10T20:46:14.8548204-06:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"5de4e082-2d36-4144-bd32-8d861c588c2d\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2bd554f-c39a-4c54-bb5a-248d3dfccef0" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;335,Microsoft.Compute/GetGallery30Min;2448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "9d87071f-b287-47a4-9975-0c6e87153e0c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "5cd12bcf-b6c5-4679-b7c0-700702262d9c" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024645Z:5cd12bcf-b6c5-4679-b7c0-700702262d9c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:44 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;333,Microsoft.Compute/GetGallery30Min;2446" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "f7041420-4751-46bd-b17f-7839560efe41" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "26762285-f14b-42ed-98f5-96139fe067a6" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024646Z:26762285-f14b-42ed-98f5-96139fe067a6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:46 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;332,Microsoft.Compute/GetGallery30Min;2445" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "aa7b970c-bcf3-4f30-8540-3d95af10a4bb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "9a96ef5a-b474-4831-b46e-32735db158b7" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024648Z:9a96ef5a-b474-4831-b46e-32735db158b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:47 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;333,Microsoft.Compute/GetGallery30Min;2439" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "38078532-3bdf-4f86-8d3f-4b143efbd716" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "3e58c1ea-4f66-4e34-9794-8b7b8caaa3cd" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024719Z:3e58c1ea-4f66-4e34-9794-8b7b8caaa3cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:19 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;332,Microsoft.Compute/GetGallery30Min;2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "2825a0f6-adc2-47c8-8b90-a6acb0c92870" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "e325cb78-25b4-4e55-be58-6f54fd09ba26" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024720Z:e325cb78-25b4-4e55-be58-6f54fd09ba26" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:20 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;330,Microsoft.Compute/GetGallery30Min;2433" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "481e9754-34d6-4b65-bfd1-f83a32db6e3d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "40a34821-70ac-4a84-a64a-6a964dce40a9" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024751Z:40a34821-70ac-4a84-a64a-6a964dce40a9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:51 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;329,Microsoft.Compute/GetGallery30Min;2432" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "a59243d1-a7ff-452b-8fd1-6760fbda3e5e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "ac2ac679-e62b-46da-bab5-8d53d5d72ed4" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024752Z:ac2ac679-e62b-46da-bab5-8d53d5d72ed4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:52 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01&$expand=SharingProfile%2FGroups", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAxJiRleHBhbmQ9U2hhcmluZ1Byb2ZpbGUlMkZHcm91cHM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8a3148cf-95a6-469d-b423-b1457bf6eeb8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;334,Microsoft.Compute/GetGallery30Min;2447" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "8a5b1599-6e10-46ab-9ff1-2608c496713c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "ae9ff680-f96b-416f-8fbf-7cf0811b172b" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024646Z:ae9ff680-f96b-416f-8fbf-7cf0811b172b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:45 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253/share?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1My9zaGFyZT9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"operationType\": \"Add\",\r\n \"groups\": [\r\n {\r\n \"type\": \"Subscriptions\",\r\n \"ids\": [\r\n \"88fd8cb2-8248-499e-9a2d-4929a4b0133c\",\r\n \"54b875cc-a81a-4914-8bfd-1a36bc7ddf4d\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "219" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/1e017881-a9ca-4cf2-a194-56b916df88d9?monitor=true&api-version=2021-10-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/1e017881-a9ca-4cf2-a194-56b916df88d9?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PostShareGallery3Min;8,Microsoft.Compute/PostShareGallery30Min;58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "1e017881-a9ca-4cf2-a194-56b916df88d9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "9e561bff-e74a-41b0-bd5b-c172ac6acd7f" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024648Z:9e561bff-e74a-41b0-bd5b-c172ac6acd7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:46:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253/share?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1My9zaGFyZT9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"operationType\": \"Remove\",\r\n \"groups\": [\r\n {\r\n \"type\": \"Subscriptions\",\r\n \"ids\": [\r\n \"88fd8cb2-8248-499e-9a2d-4929a4b0133c\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "173" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/3adc419a-9e54-44f7-8fe2-eca6e6cd80b0?monitor=true&api-version=2021-10-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/3adc419a-9e54-44f7-8fe2-eca6e6cd80b0?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PostShareGallery3Min;8,Microsoft.Compute/PostShareGallery30Min;57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "3adc419a-9e54-44f7-8fe2-eca6e6cd80b0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "559f2b48-a194-4db1-9501-bff65350f765" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024720Z:559f2b48-a194-4db1-9501-bff65350f765" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253/share?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1My9zaGFyZT9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"operationType\": \"Reset\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/b306b7b0-e393-42c0-92f8-8b66bd675f28?monitor=true&api-version=2021-10-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/b306b7b0-e393-42c0-92f8-8b66bd675f28?api-version=2021-10-01" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/PostShareGallery3Min;7,Microsoft.Compute/PostShareGallery30Min;56" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "b306b7b0-e393-42c0-92f8-8b66bd675f28" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b60e3e4b-fb19-44f3-9eec-4dd709a8f991" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024753Z:b60e3e4b-fb19-44f3-9eec-4dd709a8f991" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:52 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/1e017881-a9ca-4cf2-a194-56b916df88d9?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zLzFlMDE3ODgxLWE5Y2EtNGNmMi1hMTk0LTU2YjkxNmRmODhkOT9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1193,Microsoft.Compute/GetOperationStatus30Min;4190" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "054bd017-165e-4f2c-aed5-073bb1c32ab1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "9548a1b8-0d9f-405f-bef7-2b6d1cbafe3a" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024718Z:9548a1b8-0d9f-405f-bef7-2b6d1cbafe3a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:17 GMT" + ], + "Content-Length": [ + "183" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2022-03-10T20:46:48.1831901-06:00\",\r\n \"endTime\": \"2022-03-10T20:46:51.370712-06:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"1e017881-a9ca-4cf2-a194-56b916df88d9\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/1e017881-a9ca-4cf2-a194-56b916df88d9?monitor=true&api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zLzFlMDE3ODgxLWE5Y2EtNGNmMi1hMTk0LTU2YjkxNmRmODhkOT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAyMS0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1192,Microsoft.Compute/GetOperationStatus30Min;4189" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "f5ec1b7a-3809-475f-9148-c261e1354c4f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "a217d826-1f94-40e7-8eab-4d570d8a4b1b" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024718Z:a217d826-1f94-40e7-8eab-4d570d8a4b1b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01&$select=Permissions", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAxJiRzZWxlY3Q9UGVybWlzc2lvbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c78573f-8371-4267-b016-a9b264347c02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;334,Microsoft.Compute/GetGallery30Min;2440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "73656052-97c5-4fbe-9d45-a970a267f216" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "cce43c9c-f2c3-45de-9d62-6c0cc49ed3e0" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024718Z:cce43c9c-f2c3-45de-9d62-6c0cc49ed3e0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:18 GMT" + ], + "Content-Length": [ + "719" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\",\r\n \"groups\": [\r\n {\r\n \"type\": \"Subscriptions\",\r\n \"ids\": [\r\n \"88fd8cb2-8248-499e-9a2d-4929a4b0133c\",\r\n \"54b875cc-a81a-4914-8bfd-1a36bc7ddf4d\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01&$select=Permissions", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAxJiRzZWxlY3Q9UGVybWlzc2lvbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;331,Microsoft.Compute/GetGallery30Min;2434" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "0b007a59-186e-4c3d-9560-a8fe2bb3fd86" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "fab94f7c-b378-489d-bba4-c56e2a72d215" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024751Z:fab94f7c-b378-489d-bba4-c56e2a72d215" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:50 GMT" + ], + "Content-Length": [ + "666" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\",\r\n \"groups\": [\r\n {\r\n \"type\": \"Subscriptions\",\r\n \"ids\": [\r\n \"54b875cc-a81a-4914-8bfd-1a36bc7ddf4d\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253?api-version=2021-10-01&$select=Permissions", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczgyNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5Y3JwdGVzdHBzODI1Mz9hcGktdmVyc2lvbj0yMDIxLTEwLTAxJiRzZWxlY3Q9UGVybWlzc2lvbnM=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetGallery3Min;328,Microsoft.Compute/GetGallery30Min;2430" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "2c70cdb7-a03b-42f5-b070-a12d8553c222" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "a3737576-488d-4040-ab4e-23708fe51ae4" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024823Z:a3737576-488d-4040-ab4e-23708fe51ae4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:48:22 GMT" + ], + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"gallerycrptestps8253\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps8253/providers/Microsoft.Compute/galleries/gallerycrptestps8253\",\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": \"e37510d7-33b6-4676-886f-ee75bcc01871-GALLERYCRPTESTPS8253\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Private\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/3adc419a-9e54-44f7-8fe2-eca6e6cd80b0?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zLzNhZGM0MTlhLTllNTQtNDRmNy04ZmUyLWVjYTZlNmNkODBiMD9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1192,Microsoft.Compute/GetOperationStatus30Min;4187" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "0903e5fd-5173-442c-a0ee-2a391552b5fe" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "f47d55ac-bfe8-43e0-adbc-fa3976bddb60" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024750Z:f47d55ac-bfe8-43e0-adbc-fa3976bddb60" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:50 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2022-03-10T20:47:20.7615338-06:00\",\r\n \"endTime\": \"2022-03-10T20:47:21.0740528-06:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"3adc419a-9e54-44f7-8fe2-eca6e6cd80b0\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/3adc419a-9e54-44f7-8fe2-eca6e6cd80b0?monitor=true&api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zLzNhZGM0MTlhLTllNTQtNDRmNy04ZmUyLWVjYTZlNmNkODBiMD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAyMS0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4dbacef1-3fb2-489e-89a6-fea5620db3fa" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1191,Microsoft.Compute/GetOperationStatus30Min;4186" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "5edc4357-3d9c-434a-9a5f-a3945fd78cab" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "a17c43f0-ed78-4858-9194-fdc6cdad6bbc" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024751Z:a17c43f0-ed78-4858-9194-fdc6cdad6bbc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:47:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/b306b7b0-e393-42c0-92f8-8b66bd675f28?api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zL2IzMDZiN2IwLWUzOTMtNDJjMC05MmY4LThiNjZiZDY3NWYyOD9hcGktdmVyc2lvbj0yMDIxLTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1190,Microsoft.Compute/GetOperationStatus30Min;4184" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "664df68d-f95f-4360-9c9c-ebfc1095cf8d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "44696a13-9b08-4180-a5a5-12836c115170" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024823Z:44696a13-9b08-4180-a5a5-12836c115170" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:48:22 GMT" + ], + "Content-Length": [ + "183" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2022-03-10T20:47:52.9961121-06:00\",\r\n \"endTime\": \"2022-03-10T20:47:53.324252-06:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"b306b7b0-e393-42c0-92f8-8b66bd675f28\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/eastus/capsOperations/b306b7b0-e393-42c0-92f8-8b66bd675f28?monitor=true&api-version=2021-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvZWFzdHVzL2NhcHNPcGVyYXRpb25zL2IzMDZiN2IwLWUzOTMtNDJjMC05MmY4LThiNjZiZDY3NWYyOD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAyMS0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a384b8-97a3-4d8f-98fb-9cac2f416b44" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-resource": [ + "Microsoft.Compute/GetOperationStatus3Min;1189,Microsoft.Compute/GetOperationStatus30Min;4183" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "70d5434e-5504-4968-b956-f8d027c07083_132736855405793073,70d5434e-5504-4968-b956-f8d027c07083_132736855405793073" + ], + "x-ms-request-id": [ + "a796d8f7-299a-418d-b7f1-61fac062aa20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "b26d30ea-bc5d-4074-b0a4-24838ed6f80e" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024823Z:b26d30ea-bc5d-4074-b0a4-24838ed6f80e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:48:22 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourcegroups/crptestps8253?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlZ3JvdXBzL2NycHRlc3RwczgyNTM/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f2d7e054-2c26-49d4-b166-e96c42109e38" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "7d48a26c-5078-46a5-a99a-4bd03d398262" + ], + "x-ms-correlation-request-id": [ + "7d48a26c-5078-46a5-a99a-4bd03d398262" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024825Z:7d48a26c-5078-46a5-a99a-4bd03d398262" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:48:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk00TWpVekxVVkJVMVJWVXlJc0ltcHZZa3h2WTJGMGFXOXVJam9pWldGemRIVnpJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "3e57c140-f4a5-417f-847a-81f6e48440d3" + ], + "x-ms-correlation-request-id": [ + "3e57c140-f4a5-417f-847a-81f6e48440d3" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024840Z:3e57c140-f4a5-417f-847a-81f6e48440d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:48:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk00TWpVekxVVkJVMVJWVXlJc0ltcHZZa3h2WTJGMGFXOXVJam9pWldGemRIVnpJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "75e8e80f-e3a6-4704-9df8-3f800ec8aa1e" + ], + "x-ms-correlation-request-id": [ + "75e8e80f-e3a6-4704-9df8-3f800ec8aa1e" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024856Z:75e8e80f-e3a6-4704-9df8-3f800ec8aa1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:48:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk00TWpVekxVVkJVMVJWVXlJc0ltcHZZa3h2WTJGMGFXOXVJam9pWldGemRIVnpJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "8bac0d9c-b946-4471-a8aa-63b73ff26da7" + ], + "x-ms-correlation-request-id": [ + "8bac0d9c-b946-4471-a8aa-63b73ff26da7" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024911Z:8bac0d9c-b946-4471-a8aa-63b73ff26da7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:49:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk00TWpVekxVVkJVMVJWVXlJc0ltcHZZa3h2WTJGMGFXOXVJam9pWldGemRIVnpJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "b64ac387-4ae4-41af-ab29-cec8cb8ac394" + ], + "x-ms-correlation-request-id": [ + "b64ac387-4ae4-41af-ab29-cec8cb8ac394" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024926Z:b64ac387-4ae4-41af-ab29-cec8cb8ac394" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:49:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk00TWpVekxVVkJVMVJWVXlJc0ltcHZZa3h2WTJGMGFXOXVJam9pWldGemRIVnpJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "febac3c0-250e-44e5-9eaf-f11e66ed8e55" + ], + "x-ms-correlation-request-id": [ + "febac3c0-250e-44e5-9eaf-f11e66ed8e55" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024941Z:febac3c0-250e-44e5-9eaf-f11e66ed8e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:49:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM4MjUzLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk00TWpVekxVVkJVMVJWVXlJc0ltcHZZa3h2WTJGMGFXOXVJam9pWldGemRIVnpJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.700.22.11601", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22000", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.56" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "7f109ec9-c68c-45f4-b193-b60d8fef7d37" + ], + "x-ms-correlation-request-id": [ + "7f109ec9-c68c-45f4-b193-b60d8fef7d37" + ], + "x-ms-routing-request-id": [ + "SOUTHCENTRALUS:20220311T024941Z:7f109ec9-c68c-45f4-b193-b60d8fef7d37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 11 Mar 2022 02:49:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-GalleryDirectSharing": [ + "crptestps8253" + ] + }, + "Variables": { + "SubscriptionId": "e37510d7-33b6-4676-886f-ee75bcc01871" + } +} \ No newline at end of file diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index 5c2be8851062..5e52a5b787ab 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -20,6 +20,13 @@ --> ## Upcoming Release +* `New-AzGallery` can take in `-Permission` parameter to set its sharingProfile property. +* `Update-AzGallery` can update sharingProfile. +* `Get-AzGallery` can take in `-Expand` parameter for expanded resource view. +* New parameter set for the following cmdlets to support Shared Image Gallery Direct Sharing + - Get-AzGallery + - Get-AzGalleryImageDefinition + - Get-AzGalleryImageVersion ## Version 4.25.0 * Updated `New-AzVM` to create a new storage account for boot diagnostics if one does not exist. This will prevent the cmdlet from using a random storage account in the current subscription to use for boot diagnostics. diff --git a/src/Compute/Compute/Compute.csproj b/src/Compute/Compute/Compute.csproj index b4db157e02c9..7f8c888ec5a0 100644 --- a/src/Compute/Compute/Compute.csproj +++ b/src/Compute/Compute/Compute.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Compute/Compute/Generated/ComputeAutomationBaseCmdlet.cs b/src/Compute/Compute/Generated/ComputeAutomationBaseCmdlet.cs index 0aac0113d9c5..724d9d38d633 100644 --- a/src/Compute/Compute/Generated/ComputeAutomationBaseCmdlet.cs +++ b/src/Compute/Compute/Generated/ComputeAutomationBaseCmdlet.cs @@ -153,6 +153,35 @@ public IGalleryImageVersionsOperations GalleryImageVersionsClient return ComputeClient.ComputeManagementClient.GalleryImageVersions; } } + public IGallerySharingProfileOperations GallerySharingProfileClient + { + get + { + return ComputeClient.ComputeManagementClient.GallerySharingProfile; + } + } + public ISharedGalleriesOperations SharedGalleriesClient + { + get + { + return ComputeClient.ComputeManagementClient.SharedGalleries; + } + } + + public ISharedGalleryImagesOperations SharedGalleryImagesClient + { + get + { + return ComputeClient.ComputeManagementClient.SharedGalleryImages; + } + } + public ISharedGalleryImageVersionsOperations SharedGalleryImageVersionsClient + { + get + { + return ComputeClient.ComputeManagementClient.SharedGalleryImageVersions; + } + } public IImagesOperations ImagesClient { diff --git a/src/Compute/Compute/Generated/Gallery/GalleryCreateOrUpdateMethod.cs b/src/Compute/Compute/Generated/Gallery/GalleryCreateOrUpdateMethod.cs index d545bd8e7f51..3188e0022379 100644 --- a/src/Compute/Compute/Generated/Gallery/GalleryCreateOrUpdateMethod.cs +++ b/src/Compute/Compute/Generated/Gallery/GalleryCreateOrUpdateMethod.cs @@ -47,6 +47,10 @@ public override void ExecuteCmdlet() string galleryName = this.Name; Gallery gallery = new Gallery(); gallery.Location = this.Location; + if (this.IsParameterBound(c => c.Permission)){ + gallery.SharingProfile = new SharingProfile(); + gallery.SharingProfile.Permissions = this.Permission; + } if (this.IsParameterBound(c => c.Description)) { @@ -102,6 +106,13 @@ public override void ExecuteCmdlet() Mandatory = false, ValueFromPipelineByPropertyName = true)] public Hashtable Tag { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "This property allows you to specify the permission of sharing gallery. Possible values are: 'Private' and 'Groups'.")] + [PSArgumentCompleter("Private","Groups")] + public string Permission { get; set; } } [Cmdlet(VerbsData.Update, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Gallery", DefaultParameterSetName = "DefaultParameter", SupportsShouldProcess = true)] @@ -153,8 +164,108 @@ public override void ExecuteCmdlet() { gallery.Tags = this.Tag.Cast().ToDictionary(ht => (string)ht.Key, ht => (string)ht.Value); } + if (this.IsParameterBound(c => c.Permission)) + { + if (gallery.SharingProfile == null) + { + gallery.SharingProfile = new SharingProfile(); + } + gallery.SharingProfile.Permissions = this.Permission; + } + + + SharingUpdate sharingUpdate = new SharingUpdate(); + if (this.Share.IsPresent) + { + if (this.Reset.IsPresent) + { + // if sub or tenant is present return error + if (this.IsParameterBound(c => c.Subscription) || this.IsParameterBound(c => c.Tenant)) + { + throw new Exception("Parameter '-Reset' cannot be used with parameters '-Tenant' or '-Subscription'."); + } + else + { + sharingUpdate.OperationType = "Reset"; + } + } + if (this.IsParameterBound(c => c.Subscription)) + { + if (sharingUpdate.Groups == null) + { + sharingUpdate.Groups = new List(); + } + SharingProfileGroup sharingProfile = new SharingProfileGroup(); + sharingProfile.Type = "Subscriptions"; + sharingProfile.Ids = new List(); + foreach (var id in this.Subscription) + { + sharingProfile.Ids.Add(id); + } + sharingUpdate.Groups.Add(sharingProfile); + sharingUpdate.OperationType = "Add"; + } + if (this.IsParameterBound(c => c.Tenant)) + { + if (sharingUpdate.Groups == null) + { + sharingUpdate.Groups = new List(); + } + SharingProfileGroup sharingProfile = new SharingProfileGroup(); + sharingProfile.Type = "AADTenants"; + sharingProfile.Ids = new List(); + foreach (var id in this.Tenant) + { + sharingProfile.Ids.Add(id); + } + sharingUpdate.Groups.Add(sharingProfile); + sharingUpdate.OperationType = "Add"; + } + if (this.IsParameterBound(c => c.RemoveTenant)) + { + if (sharingUpdate.Groups == null) + { + sharingUpdate.Groups = new List(); + } + SharingProfileGroup sharingProfile = new SharingProfileGroup(); + sharingProfile.Type = "AADTenants"; + sharingProfile.Ids = new List(); + foreach (var id in this.RemoveTenant) + { + sharingProfile.Ids.Add(id); + } + sharingUpdate.Groups.Add(sharingProfile); + sharingUpdate.OperationType = "Remove"; + } + if (this.IsParameterBound(c => c.RemoveSubscription)) + { + if (sharingUpdate.Groups == null) + { + sharingUpdate.Groups = new List(); + } + SharingProfileGroup sharingProfile = new SharingProfileGroup(); + sharingProfile.Type = "Subscriptions"; + sharingProfile.Ids = new List(); + foreach (var id in this.RemoveSubscription) + { + sharingProfile.Ids.Add(id); + } + sharingUpdate.Groups.Add(sharingProfile); + sharingUpdate.OperationType = "Remove"; + } + } + else if (this.IsParameterBound(c => c.Subscription) || this.IsParameterBound(c => c.Tenant) || this.Reset.IsPresent || this.IsParameterBound(c => c.RemoveSubscription) || this.IsParameterBound(c => c.RemoveTenant)) + { + throw new Exception("Parameters '-Subscription', '-Tenant', '-RemoveSubscription', '-RemoveTenant', and '-Reset' must be used with '-Share' parameter."); + } + var result = GalleriesClient.CreateOrUpdate(resourceGroupName, galleryName, gallery); + if (this.Share.IsPresent) + { + GallerySharingProfileClient.Update(resourceGroupName, galleryName, sharingUpdate); + result = GalleriesClient.Get(ResourceGroupName, galleryName, "Permissions"); + } var psObject = new PSGallery(); ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject); WriteObject(psObject); @@ -205,5 +316,48 @@ public override void ExecuteCmdlet() Mandatory = false, ValueFromPipelineByPropertyName = true)] public Hashtable Tag { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "This property allows you to specify the permission of the sharing gallery. Possible values are: 'Private' and 'Groups'.")] + [PSArgumentCompleter("Private", "Groups")] + public string Permission { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "A list of subscription IDs the gallery is aimed to be shared to.")] + public string[] Subscription { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "A list of tenant IDs the gallery is aimed to be shared to.")] + public string[] Tenant { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "A list of subscription IDs the gallery will stop sharing to.")] + public string[] RemoveSubscription { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "A list of tenant IDs the gallery will stop sharing to.")] + public string[] RemoveTenant { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "Update sharing profile of the gallery.")] + public SwitchParameter Share { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "Resets the sharing permission of the gallery to 'Private'.")] + public SwitchParameter Reset { get; set; } } } diff --git a/src/Compute/Compute/Generated/Gallery/GalleryGetMethod.cs b/src/Compute/Compute/Generated/Gallery/GalleryGetMethod.cs index c960e62a4c22..5bbe4dae72c7 100644 --- a/src/Compute/Compute/Generated/Gallery/GalleryGetMethod.cs +++ b/src/Compute/Compute/Generated/Gallery/GalleryGetMethod.cs @@ -49,6 +49,9 @@ public override void ExecuteCmdlet() resourceGroupName = GetResourceGroupName(this.ResourceId); galleryName = GetResourceName(this.ResourceId, "Microsoft.Compute/galleries"); break; + case "SharedGalleryParameterSet": + SharedGalleryGet(); + return; default: resourceGroupName = this.ResourceGroupName; galleryName = this.Name; @@ -57,7 +60,8 @@ public override void ExecuteCmdlet() if (ShouldGetByName(resourceGroupName, galleryName)) { - var result = GalleriesClient.Get(resourceGroupName, galleryName); + var result = GalleriesClient.Get(resourceGroupName, galleryName, null, this.Expand); + var psObject = new PSGallery(); ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject); WriteObject(psObject); @@ -85,6 +89,10 @@ public override void ExecuteCmdlet() } else { + if(this.IsParameterBound(c => c.Name)) + { + WriteWarning("To retrieve a specific Gallery resource, please provide '-ResourceGroupName'.\nUsing '-Name' parameter without '-ResourceGroupName' will default to listing all gallery resources in your current subscription."); + } var result = GalleriesClient.List(); var resultList = result.ToList(); var nextPageLink = result.NextPageLink; @@ -107,6 +115,48 @@ public override void ExecuteCmdlet() }); } + public void SharedGalleryGet() + { + if (this.IsParameterBound(c => c.GalleryUniqueName)) + { + SharedGallery result = SharedGalleriesClient.Get(this.Location, this.GalleryUniqueName); + var psObject = new PSSharedGallery(); + ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject); + WriteObject(psObject); + } + else + { + Rest.Azure.IPage result = new Page(); + + if (this.IsParameterBound(c => c.Scope) && this.Scope != "subscription") + { + result = SharedGalleriesClient.List(this.Location, this.Scope); + } + else + { + result = SharedGalleriesClient.List(this.Location); + } + + var resultList = result.ToList(); + var nextPageLink = result.NextPageLink; + while (!string.IsNullOrEmpty(nextPageLink)) + { + var pageResult = SharedGalleriesClient.ListNext(nextPageLink); + foreach (var pageItem in pageResult) + { + resultList.Add(pageItem); + } + nextPageLink = pageResult.NextPageLink; + } + var psObject = new List(); + foreach (var r in resultList) + { + psObject.Add(ComputeAutomationAutoMapperProfile.Mapper.Map(r)); + } + WriteObject(psObject); + } + } + [Parameter( ParameterSetName = "DefaultParameter", Position = 0, @@ -129,5 +179,36 @@ public override void ExecuteCmdlet() Mandatory = true, ValueFromPipelineByPropertyName = true)] public string ResourceId { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet", + HelpMessage = "The unique name of the Shared Image Gallery.")] + public string GalleryUniqueName { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet", + HelpMessage = "Specifies galleries shared to subscription or tenant.")] + [PSArgumentCompleter("subscription", "tenant")] + public string Scope { get; set; } + + [Parameter( + Mandatory = true, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet")] + [LocationCompleter("Microsoft.Compute/Galleries")] + [ValidateNotNullOrEmpty] + public string Location { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "DefaultParameter", + HelpMessage = "The expand query option to apply on the operation.")] + [PSArgumentCompleter("SharingProfile/Groups")] + public string Expand { get; set; } } } diff --git a/src/Compute/Compute/Generated/GalleryImage/GalleryImageGetMethod.cs b/src/Compute/Compute/Generated/GalleryImage/GalleryImageGetMethod.cs index f4d8e1b0f3ce..e17dd50c2799 100644 --- a/src/Compute/Compute/Generated/GalleryImage/GalleryImageGetMethod.cs +++ b/src/Compute/Compute/Generated/GalleryImage/GalleryImageGetMethod.cs @@ -51,6 +51,9 @@ public override void ExecuteCmdlet() galleryName = GetResourceName(this.ResourceId, "Microsoft.Compute/Galleries", "Images"); galleryImageName = GetInstanceId(this.ResourceId, "Microsoft.Compute/Galleries", "Images"); break; + case "SharedGalleryParameterSet": + SharedGalleryGet(); + return; default: resourceGroupName = this.ResourceGroupName; galleryName = this.GalleryName; @@ -90,6 +93,48 @@ public override void ExecuteCmdlet() }); } + public void SharedGalleryGet() + { + if (this.IsParameterBound(c => c.Name)) + { + SharedGalleryImage result = SharedGalleryImagesClient.Get(this.Location, this.GalleryUniqueName, this.Name); + var psObject = new PSSharedGalleryImage(); + ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject); + WriteObject(psObject); + } + else + { + Rest.Azure.IPage result = new Page(); + + if (this.IsParameterBound(c => c.Scope) && this.Scope != "subscription") + { + result = SharedGalleryImagesClient.List(this.Location, this.GalleryUniqueName, this.Scope); + } + else + { + result = SharedGalleryImagesClient.List(this.Location, this.GalleryUniqueName); + } + + var resultList = result.ToList(); + var nextPageLink = result.NextPageLink; + while (!string.IsNullOrEmpty(nextPageLink)) + { + var pageResult = SharedGalleryImagesClient.ListNext(nextPageLink); + foreach (var pageItem in pageResult) + { + resultList.Add(pageItem); + } + nextPageLink = pageResult.NextPageLink; + } + var psObject = new List(); + foreach (var r in resultList) + { + psObject.Add(ComputeAutomationAutoMapperProfile.Mapper.Map(r)); + } + WriteObject(psObject); + } + } + [Parameter( ParameterSetName = "DefaultParameter", Position = 0, @@ -110,6 +155,9 @@ public override void ExecuteCmdlet() ParameterSetName = "DefaultParameter", Position = 2, ValueFromPipelineByPropertyName = true)] + [Parameter( + ParameterSetName = "SharedGalleryParameterSet", + ValueFromPipelineByPropertyName = true)] [SupportsWildcards] public string Name { get; set; } @@ -119,5 +167,28 @@ public override void ExecuteCmdlet() Mandatory = true, ValueFromPipelineByPropertyName = true)] public string ResourceId { get; set; } + + [Parameter( + Mandatory = true, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet", + HelpMessage = "The unique name of the Shared Image Gallery.")] + public string GalleryUniqueName { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet", + HelpMessage = "Specifies galleries shared to subscription or tenant.")] + [PSArgumentCompleter("subscription", "tenant")] + public string Scope { get; set; } + + [Parameter( + Mandatory = true, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet")] + [LocationCompleter("Microsoft.Compute/Galleries")] + [ValidateNotNullOrEmpty] + public string Location { get; set; } } } diff --git a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs index 58758bba8862..d508afc675bc 100644 --- a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs +++ b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs @@ -191,6 +191,7 @@ public override void ExecuteCmdlet() Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [Alias("GalleryImageName")] public string GalleryImageDefinitionName { get; set; } [Alias("GalleryImageVersionName")] @@ -413,6 +414,7 @@ public override void ExecuteCmdlet() Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [Alias("GalleryImageName")] public string GalleryImageDefinitionName { get; set; } [Alias("GalleryImageVersionName")] diff --git a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionDeleteMethod.cs b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionDeleteMethod.cs index fa753e9e30b9..d675735dd94d 100644 --- a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionDeleteMethod.cs +++ b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionDeleteMethod.cs @@ -109,6 +109,7 @@ public override void ExecuteCmdlet() Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [Alias("GalleryImageName")] public string GalleryImageDefinitionName { get; set; } [Alias("GalleryImageVersionName")] diff --git a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionGetMethod.cs b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionGetMethod.cs index 8edfdd1513f2..1b6ee5b4be19 100644 --- a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionGetMethod.cs +++ b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionGetMethod.cs @@ -54,6 +54,9 @@ public override void ExecuteCmdlet() galleryImageName = GetInstanceId(this.ResourceId, "Microsoft.Compute/Galleries", "Images", "Versions"); galleryImageVersionName = GetVersion(this.ResourceId, "Microsoft.Compute/Galleries", "Images", "Versions"); break; + case "SharedGalleryParameterSet": + SharedGalleryGet(); + return; default: resourceGroupName = this.ResourceGroupName; galleryName = this.GalleryName; @@ -94,6 +97,48 @@ public override void ExecuteCmdlet() }); } + public void SharedGalleryGet() + { + if (this.IsParameterBound(c => c.Name)) + { + SharedGalleryImageVersion result = SharedGalleryImageVersionsClient.Get(this.Location, this.GalleryUniqueName, this.GalleryImageDefinitionName, this.Name); + var psObject = new PSSharedGalleryImageVersion(); + ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject); + WriteObject(psObject); + } + else + { + Rest.Azure.IPage result = new Page(); + + if (this.IsParameterBound(c => c.Scope) && this.Scope != "subscription") + { + result = SharedGalleryImageVersionsClient.List(this.Location, this.GalleryUniqueName, this.GalleryImageDefinitionName, this.Scope); + } + else + { + result = SharedGalleryImageVersionsClient.List(this.Location, this.GalleryUniqueName, this.GalleryImageDefinitionName); + } + + var resultList = result.ToList(); + var nextPageLink = result.NextPageLink; + while (!string.IsNullOrEmpty(nextPageLink)) + { + var pageResult = SharedGalleryImageVersionsClient.ListNext(nextPageLink); + foreach (var pageItem in pageResult) + { + resultList.Add(pageItem); + } + nextPageLink = pageResult.NextPageLink; + } + var psObject = new List(); + foreach (var r in resultList) + { + psObject.Add(ComputeAutomationAutoMapperProfile.Mapper.Map(r)); + } + WriteObject(psObject); + } + } + [Parameter( ParameterSetName = "DefaultParameter", Position = 0, @@ -114,6 +159,11 @@ public override void ExecuteCmdlet() Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [Parameter( + ParameterSetName = "SharedGalleryParameterSet", + Mandatory = true, + ValueFromPipelineByPropertyName = true)] + [Alias("GalleryImageName")] public string GalleryImageDefinitionName { get; set; } [Alias("GalleryImageVersionName")] @@ -121,6 +171,9 @@ public override void ExecuteCmdlet() ParameterSetName = "DefaultParameter", Position = 3, ValueFromPipelineByPropertyName = true)] + [Parameter( + ParameterSetName = "SharedGalleryParameterSet", + ValueFromPipelineByPropertyName = true)] [SupportsWildcards] public string Name { get; set; } @@ -135,5 +188,28 @@ public override void ExecuteCmdlet() Mandatory = false, ValueFromPipelineByPropertyName = true)] public SwitchParameter ExpandReplicationStatus { get; set; } + + [Parameter( + Mandatory = true, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet", + HelpMessage = "The unique name of the Shared Image Gallery.")] + public string GalleryUniqueName { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet", + HelpMessage = "Specifies galleries shared to subscription or tenant.")] + [PSArgumentCompleter("subscription", "tenant")] + public string Scope { get; set; } + + [Parameter( + Mandatory = true, + ValueFromPipelineByPropertyName = true, + ParameterSetName = "SharedGalleryParameterSet")] + [LocationCompleter("Microsoft.Compute/Galleries")] + [ValidateNotNullOrEmpty] + public string Location { get; set; } } } diff --git a/src/Compute/Compute/Generated/Models/ComputeAutoMapperProfile.cs b/src/Compute/Compute/Generated/Models/ComputeAutoMapperProfile.cs index b61ab8619961..485501ca8983 100644 --- a/src/Compute/Compute/Generated/Models/ComputeAutoMapperProfile.cs +++ b/src/Compute/Compute/Generated/Models/ComputeAutoMapperProfile.cs @@ -191,6 +191,21 @@ private static void Initialize() cfg.CreateMap(); cfg.CreateMap(); cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); + cfg.CreateMap(); cfg.CreateMap(); cfg.CreateMap(); cfg.CreateMap(); diff --git a/src/Compute/Compute/Generated/Models/PSGallery.cs b/src/Compute/Compute/Generated/Models/PSGallery.cs index f5a5274c6da2..1401d7a76314 100644 --- a/src/Compute/Compute/Generated/Models/PSGallery.cs +++ b/src/Compute/Compute/Generated/Models/PSGallery.cs @@ -48,6 +48,7 @@ public string ResourceGroupName public string Type { get; set; } public string Location { get; set; } public IDictionary Tags { get; set; } + public SharingProfile SharingProfile { get; set; } } } diff --git a/src/Compute/Compute/Generated/Models/PSSharedGallery.cs b/src/Compute/Compute/Generated/Models/PSSharedGallery.cs new file mode 100644 index 000000000000..29128c3a30d0 --- /dev/null +++ b/src/Compute/Compute/Generated/Models/PSSharedGallery.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using Microsoft.Azure.Management.Compute.Models; + +namespace Microsoft.Azure.Commands.Compute.Automation.Models +{ + public class PSSharedGallery + { + public string Name { get; set; } + public string Location { get; set; } + public string UniqueId { get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute/Generated/Models/PSSharedGalleryImage.cs b/src/Compute/Compute/Generated/Models/PSSharedGalleryImage.cs new file mode 100644 index 000000000000..648c91205473 --- /dev/null +++ b/src/Compute/Compute/Generated/Models/PSSharedGalleryImage.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using Microsoft.Azure.Management.Compute.Models; + +namespace Microsoft.Azure.Commands.Compute.Automation.Models +{ + public class PSSharedGalleryImage + { + public OperatingSystemTypes OsType { get; set; } + public OperatingSystemStateTypes OsState { get; set; } + public DateTime? EndOfLifeDate { get; set; } + public GalleryImageIdentifier Identifier { get; set; } + public RecommendedMachineConfiguration Recommended { get; set; } + public Disallowed Disallowed { get; set; } + public string HyperVGeneration { get; set; } + public IList Features { get; set; } + public ImagePurchasePlan PurchasePlan { get; set; } + public string Name { get; set; } + public string Location { get; set; } + public string UniqueId { get; set; } + } +} diff --git a/src/Compute/Compute/Generated/Models/PSSharedGalleryImageList.cs b/src/Compute/Compute/Generated/Models/PSSharedGalleryImageList.cs new file mode 100644 index 000000000000..20737d843c59 --- /dev/null +++ b/src/Compute/Compute/Generated/Models/PSSharedGalleryImageList.cs @@ -0,0 +1,10 @@ +namespace Microsoft.Azure.Commands.Compute.Automation.Models +{ + public class PSSharedGalleryImageList : PSSharedGalleryImage + { + public PSSharedGalleryImage ToPSSharedGalleryImage() + { + return ComputeAutomationAutoMapperProfile.Mapper.Map(this); + } + } +} diff --git a/src/Compute/Compute/Generated/Models/PSSharedGalleryImageVersion.cs b/src/Compute/Compute/Generated/Models/PSSharedGalleryImageVersion.cs new file mode 100644 index 000000000000..82ad49d4d124 --- /dev/null +++ b/src/Compute/Compute/Generated/Models/PSSharedGalleryImageVersion.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using Microsoft.Azure.Management.Compute.Models; + +namespace Microsoft.Azure.Commands.Compute.Automation.Models +{ + public class PSSharedGalleryImageVersion + { + public string Name { get; set; } + public string Location { get; set; } + public string UniqueId { get; set; } + public DateTime? PublishedDate { get; set; } + public DateTime? EndOfLifeDate { get; set; } + } +} diff --git a/src/Compute/Compute/Generated/Models/PSSharedGalleryImageVersionList.cs b/src/Compute/Compute/Generated/Models/PSSharedGalleryImageVersionList.cs new file mode 100644 index 000000000000..d63be720494b --- /dev/null +++ b/src/Compute/Compute/Generated/Models/PSSharedGalleryImageVersionList.cs @@ -0,0 +1,10 @@ +namespace Microsoft.Azure.Commands.Compute.Automation.Models +{ + public class PSSharedGalleryImageVersionList : PSSharedGalleryImageVersion + { + public PSSharedGalleryImageVersion ToPSSharedGalleryImageVersion() + { + return ComputeAutomationAutoMapperProfile.Mapper.Map(this); + } + } +} diff --git a/src/Compute/Compute/Generated/Models/PSSharedGalleryList.cs b/src/Compute/Compute/Generated/Models/PSSharedGalleryList.cs new file mode 100644 index 000000000000..477aa1e1e346 --- /dev/null +++ b/src/Compute/Compute/Generated/Models/PSSharedGalleryList.cs @@ -0,0 +1,31 @@ +// +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Warning: This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the +// code is regenerated. + +namespace Microsoft.Azure.Commands.Compute.Automation.Models +{ + public class PSSharedGalleryList : PSSharedGallery + { + public PSSharedGallery ToPSSharedGallery() + { + return ComputeAutomationAutoMapperProfile.Mapper.Map(this); + } + } +} diff --git a/src/Compute/Compute/help/Get-AzGallery.md b/src/Compute/Compute/help/Get-AzGallery.md index a1fc9e09154a..054b5e02a36b 100644 --- a/src/Compute/Compute/help/Get-AzGallery.md +++ b/src/Compute/Compute/help/Get-AzGallery.md @@ -14,8 +14,8 @@ Get or list galleries. ### DefaultParameter (Default) ``` -Get-AzGallery [[-ResourceGroupName] ] [[-Name] ] [-DefaultProfile ] - [] +Get-AzGallery [[-ResourceGroupName] ] [[-Name] ] [-Expand ] + [-DefaultProfile ] [] ``` ### ResourceIdParameter @@ -23,6 +23,12 @@ Get-AzGallery [[-ResourceGroupName] ] [[-Name] ] [-DefaultProfil Get-AzGallery [-ResourceId] [-DefaultProfile ] [] ``` +### SharedGalleryParameterSet +``` +Get-AzGallery [-GalleryUniqueName ] [-Scope ] -Location + [-DefaultProfile ] [] +``` + ## DESCRIPTION Get or list galleries. @@ -163,6 +169,14 @@ Tags : {} Get all galleries in subscription that start with "gallery". +### Example 5 +```powershell +PS C:\> Get-AzGallery -Name galleryName -ResourceGroupName rg -Expand SharingProfile/Groups + +``` + +Get a gallery's sharing profile. + ## PARAMETERS ### -DefaultProfile @@ -180,6 +194,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -GalleryUniqueName +The unique name of the Shared Image Gallery. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Location +Location of the Shared Image Gallery. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -Name The name of the gallery. @@ -225,6 +269,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Scope +Specifies galleries shared to subscription or tenant. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Expand +The expand query option to apply on the operation. Possible value(s): "SharingProfile/Groups" + +```yaml +Type: System.String +Parameter Sets: DefaultParameter +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Compute/Compute/help/Get-AzGalleryImageDefinition.md b/src/Compute/Compute/help/Get-AzGalleryImageDefinition.md index bbb493ba71c1..809ea2bae65e 100644 --- a/src/Compute/Compute/help/Get-AzGalleryImageDefinition.md +++ b/src/Compute/Compute/help/Get-AzGalleryImageDefinition.md @@ -18,6 +18,12 @@ Get-AzGalleryImageDefinition [-ResourceGroupName] [-GalleryName] ] [] ``` +### SharedGalleryParameterSet +``` +Get-AzGalleryImageDefinition [[-Name] ] -GalleryUniqueName [-Scope ] + -Location [-DefaultProfile ] [] +``` + ### ResourceIdParameter ``` Get-AzGalleryImageDefinition [-ResourceId] [-DefaultProfile ] @@ -248,12 +254,42 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -GalleryUniqueName +The unique name of the Shared Image Gallery. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Location +Location of the Shared Image Gallery. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -Name The name of the gallery image definition. ```yaml Type: System.String -Parameter Sets: DefaultParameter +Parameter Sets: DefaultParameter, SharedGalleryParameterSet Aliases: GalleryImageDefinitionName Required: False @@ -293,6 +329,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Scope +Specifies galleries shared to subscription or tenant. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Compute/Compute/help/Get-AzGalleryImageVersion.md b/src/Compute/Compute/help/Get-AzGalleryImageVersion.md index 936f0ca40975..181e5a493d64 100644 --- a/src/Compute/Compute/help/Get-AzGalleryImageVersion.md +++ b/src/Compute/Compute/help/Get-AzGalleryImageVersion.md @@ -19,6 +19,13 @@ Get-AzGalleryImageVersion [-ResourceGroupName] [-GalleryName] [-DefaultProfile ] [] ``` +### SharedGalleryParameterSet +``` +Get-AzGalleryImageVersion [-GalleryImageDefinitionName] [[-Name] ] [-ExpandReplicationStatus] + -GalleryUniqueName [-Scope ] -Location [-DefaultProfile ] + [] +``` + ### ResourceIdParameter ``` Get-AzGalleryImageVersion [-ResourceId] [-ExpandReplicationStatus] @@ -249,7 +256,7 @@ The name of the gallery image definition. ```yaml Type: System.String -Parameter Sets: DefaultParameter +Parameter Sets: DefaultParameter, SharedGalleryParameterSet Aliases: Required: True @@ -274,12 +281,42 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -GalleryUniqueName +The unique name of the Shared Image Gallery. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Location +Location of the Shared Image Gallery. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -Name The name of the gallery image version. ```yaml Type: System.String -Parameter Sets: DefaultParameter +Parameter Sets: DefaultParameter, SharedGalleryParameterSet Aliases: GalleryImageVersionName Required: False @@ -319,6 +356,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Scope +Specifies galleries shared to subscription or tenant. + +```yaml +Type: System.String +Parameter Sets: SharedGalleryParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Compute/Compute/help/New-AzGallery.md b/src/Compute/Compute/help/New-AzGallery.md index eee8156841d8..5ac246398cd6 100644 --- a/src/Compute/Compute/help/New-AzGallery.md +++ b/src/Compute/Compute/help/New-AzGallery.md @@ -14,8 +14,8 @@ Create a gallery. ``` New-AzGallery [-ResourceGroupName] [-Name] [-AsJob] [-Location] - [-Description ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-Description ] [-Tag ] [-Permission ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -30,6 +30,13 @@ New-AzGallery -ResourceGroupName $rgname -Name $galleryName -Location $location Create a gallery. +### Example 2 +```powershell +PS C:\> New-AzGallery -ResourceGroupName $rgname -Name $galleryName -Location $location -Description $galleryDescription -Permission Groups +``` + +Create a gallery with Direct Sharing enabled. + ## PARAMETERS ### -AsJob @@ -107,6 +114,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Permission +This property allows you to specify the permission of sharing gallery. Possible values are: 'Private' and 'Groups'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. diff --git a/src/Compute/Compute/help/Update-AzGallery.md b/src/Compute/Compute/help/Update-AzGallery.md index 1e0f47edf701..95d8a11af4c4 100644 --- a/src/Compute/Compute/help/Update-AzGallery.md +++ b/src/Compute/Compute/help/Update-AzGallery.md @@ -15,19 +15,25 @@ Update a gallery. ### DefaultParameter (Default) ``` Update-AzGallery [-ResourceGroupName] [-Name] [-AsJob] [-Description ] - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Tag ] [-Permission ] [-Subscription ] [-Tenant ] + [-RemoveSubscription ] [-RemoveTenant ] [-Share] [-Reset] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ResourceIdParameter ``` Update-AzGallery [-ResourceId] [-AsJob] [-Description ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Permission ] [-Subscription ] [-Tenant ] [-RemoveSubscription ] + [-RemoveTenant ] [-Share] [-Reset] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### ObjectParameter ``` Update-AzGallery [-InputObject] [-AsJob] [-Description ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Permission ] [-Subscription ] [-Tenant ] [-RemoveSubscription ] + [-RemoveTenant ] [-Share] [-Reset] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -42,6 +48,14 @@ Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Description $gal Update a gallery. +### Example 2 +```powershell +PS C:\> Update-AzGallery -ResourceGroupName $rgname -Name $galleryName -Permission Groups -Share -Tenant xxxxxxxx-xxx-xxxxxxx,zzzzzz-zzzzzzz-zzzzzz +``` + +Update a gallery to be shared and add two subscriptions it is to be shared with. + + ## PARAMETERS ### -AsJob @@ -119,6 +133,66 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Permission +This property allows you to specify the permission of the sharing gallery. Possible values are: 'Private' and 'Groups'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -RemoveSubscription +A list of subscription IDs the gallery will stop sharing to. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -RemoveTenant +A list of tenant IDs the gallery will stop sharing to. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Reset +Resets the sharing permission of the gallery to 'Private'. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. @@ -149,6 +223,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Share +Update sharing profile of the gallery. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Subscription +A list of subscription IDs the gallery is aimed to be shared to. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -Tag Resource tags @@ -164,6 +268,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -Tenant +A list of tenant IDs the gallery is aimed to be shared to. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Network/Network.Test/Network.Test.csproj b/src/Network/Network.Test/Network.Test.csproj index 429f633b501e..ac66411d4026 100644 --- a/src/Network/Network.Test/Network.Test.csproj +++ b/src/Network/Network.Test/Network.Test.csproj @@ -18,7 +18,7 @@ - + diff --git a/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj b/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj index 7e9e069ebd3a..f4f938c3545c 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj +++ b/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj @@ -10,12 +10,12 @@ $(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix) - - - - - - + + + + + + @@ -26,4 +26,4 @@ - \ No newline at end of file + diff --git a/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj b/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj index 5a5b1c413fb8..681193590382 100644 --- a/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj +++ b/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/Security/Security.Test/Security.Test.csproj b/src/Security/Security.Test/Security.Test.csproj index e1c25f585793..368363504036 100644 --- a/src/Security/Security.Test/Security.Test.csproj +++ b/src/Security/Security.Test/Security.Test.csproj @@ -42,7 +42,7 @@ Always - + \ No newline at end of file diff --git a/src/SqlVirtualMachine/SqlVirtualMachine.Test/SqlVirtualMachine.Test.csproj b/src/SqlVirtualMachine/SqlVirtualMachine.Test/SqlVirtualMachine.Test.csproj index 3db0029e181c..cf6c2395c0c7 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine.Test/SqlVirtualMachine.Test.csproj +++ b/src/SqlVirtualMachine/SqlVirtualMachine.Test/SqlVirtualMachine.Test.csproj @@ -15,7 +15,7 @@ - +