diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.json b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.json index 22388005d0c2..fb232657bdfe 100644 --- a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.json +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa?api-version=2018-11-30", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa?api-version=2023-01-31", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -10,27 +10,28 @@ "Connection": "keep-alive", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-msi/2.0.0 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "a565f9f6-20b9-468c-9726-da0ecfccc444" + "User-Agent": "azsdk-js-arm-msi/2.1.0 core-rest-pipeline/1.10.2 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "824cf725-45e5-4080-aa35-628e2346533b" }, "RequestBody": { "location": "eastus" }, - "StatusCode": 201, + "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "426", + "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:05:56 GMT", + "Date": "Fri, 03 Feb 2023 02:55:52 GMT", "Expires": "-1", - "Location": "/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "38856961-1176-478c-b657-dcff8fe34f18", + "x-ms-correlation-request-id": "b10ea525-27d5-4bc1-bd65-4c328f487aab", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "38856961-1176-478c-b657-dcff8fe34f18", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030557Z:38856961-1176-478c-b657-dcff8fe34f18" + "x-ms-request-id": "b10ea525-27d5-4bc1-bd65-4c328f487aab", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025553Z:b10ea525-27d5-4bc1-bd65-4c328f487aab" }, "ResponseBody": { "id": "/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa", @@ -40,8 +41,8 @@ "tags": {}, "properties": { "tenantId": "88888888-8888-8888-8888-888888888888", - "principalId": "8ae41e99-ae84-48fb-8d7a-b3a0eaf8c711", - "clientId": "76550935-29d2-4563-8722-f49453eb0ce1" + "principalId": "8244978d-904f-4c6f-8a6e-09affdf8b27c", + "clientId": "e0adc358-4086-4c4d-8461-2f391caa53ed" } } }, @@ -55,8 +56,8 @@ "Connection": "keep-alive", "Content-Length": "93", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "a27fb8e0-0d51-4fb2-ae49-242b05a0ede2" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "1ca90b82-5acb-41db-9e0d-9121d126990f" }, "RequestBody": { "location": "eastus", @@ -69,13 +70,13 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/2d27df80-7fd2-44d3-813f-8e68f0101223?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/9ee4dae1-681f-48fb-85de-87f996afba9f?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "Cache-Control": "no-cache", "Content-Length": "370", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:05:59 GMT", + "Date": "Fri, 03 Feb 2023 02:55:57 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/2d27df80-7fd2-44d3-813f-8e68f0101223?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", + "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/9ee4dae1-681f-48fb-85de-87f996afba9f?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", "Pragma": "no-cache", "Retry-After": "2", "Server": [ @@ -84,12 +85,12 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "895e49b0-492c-4d77-821a-f9ae965dd1cc", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7994", + "x-ms-correlation-request-id": "e2312e13-1853-4a79-acc5-c8c204e62b1f", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7998", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "2d27df80-7fd2-44d3-813f-8e68f0101223", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030559Z:895e49b0-492c-4d77-821a-f9ae965dd1cc", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "9ee4dae1-681f-48fb-85de-87f996afba9f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025557Z:e2312e13-1853-4a79-acc5-c8c204e62b1f", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { "name": "mydiskaaa", @@ -106,7 +107,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/2d27df80-7fd2-44d3-813f-8e68f0101223?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/9ee4dae1-681f-48fb-85de-87f996afba9f?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -114,8 +115,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "41799b34-8afb-4a28-a9d2-76ce478fed3a" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "3df157de-42d2-4fd6-8d19-4f7fac43f2f9" }, "RequestBody": null, "StatusCode": 200, @@ -123,7 +124,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:05:59 GMT", + "Date": "Fri, 03 Feb 2023 02:55:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -134,16 +135,16 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f06a89c6-1081-416b-9025-d4620bd5e66a", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399929", + "x-ms-correlation-request-id": "6ba839c1-a5cd-405b-b404-13be74a52603", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399985", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "975a21b1-5f35-42be-98d9-bce1f20475e3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030559Z:f06a89c6-1081-416b-9025-d4620bd5e66a", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "1dc27f69-4272-40ca-aed8-6477081c2753", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025558Z:6ba839c1-a5cd-405b-b404-13be74a52603", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { - "startTime": "2023-01-11T03:05:59.412269\u002B00:00", - "endTime": "2023-01-11T03:05:59.5216527\u002B00:00", + "startTime": "2023-02-03T02:55:57.6779362\u002B00:00", + "endTime": "2023-02-03T02:55:57.740436\u002B00:00", "status": "Succeeded", "properties": { "output": { @@ -167,15 +168,15 @@ }, "networkAccessPolicy": "AllowAll", "publicNetworkAccess": "Enabled", - "timeCreated": "2023-01-11T03:05:59.412269\u002B00:00", + "timeCreated": "2023-02-03T02:55:57.6779362\u002B00:00", "provisioningState": "Succeeded", "diskState": "Unattached", "diskSizeBytes": 214748364800, - "uniqueId": "7fc45ce0-e32f-4a21-8444-bc33ba7f3f5c" + "uniqueId": "85648286-5976-42a8-9c4e-c9447a884b35" } } }, - "name": "2d27df80-7fd2-44d3-813f-8e68f0101223" + "name": "9ee4dae1-681f-48fb-85de-87f996afba9f" } }, { @@ -187,8 +188,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "e51040ed-355c-41f5-b2db-fd143b306cbd" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "9d528f7d-f07f-47c2-a9e6-514b76930a41" }, "RequestBody": null, "StatusCode": 200, @@ -196,7 +197,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:00 GMT", + "Date": "Fri, 03 Feb 2023 02:55:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -207,12 +208,12 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ad097aa3-db0f-43da-8565-28b374278879", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;14999,Microsoft.Compute/LowCostGet30Min;119954", + "x-ms-correlation-request-id": "5b28954f-0613-4618-96be-921b5aa8c197", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;14999,Microsoft.Compute/LowCostGet30Min;119990", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "65fde439-de4e-4674-925b-019c2bca7eb3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030600Z:ad097aa3-db0f-43da-8565-28b374278879", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "8d471bb9-8c76-4268-98b4-88c0ba9148ad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025558Z:5b28954f-0613-4618-96be-921b5aa8c197", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { "name": "mydiskaaa", @@ -235,11 +236,11 @@ }, "networkAccessPolicy": "AllowAll", "publicNetworkAccess": "Enabled", - "timeCreated": "2023-01-11T03:05:59.412269\u002B00:00", + "timeCreated": "2023-02-03T02:55:57.6779362\u002B00:00", "provisioningState": "Succeeded", "diskState": "Unattached", "diskSizeBytes": 214748364800, - "uniqueId": "7fc45ce0-e32f-4a21-8444-bc33ba7f3f5c" + "uniqueId": "85648286-5976-42a8-9c4e-c9447a884b35" } } }, @@ -253,8 +254,8 @@ "Connection": "keep-alive", "Content-Length": "194", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "88dab77f-ef63-4c48-85f3-0e5ef5c85817" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "51e99781-c031-4e34-a6f3-efc6141f99ae" }, "RequestBody": { "location": "eastus", @@ -267,13 +268,13 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4f853105-c03a-4f07-8af5-e2f81f6aae4d?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/aef34082-211e-425e-8eae-a9b9773c46b0?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "Cache-Control": "no-cache", - "Content-Length": "461", + "Content-Length": "489", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:02 GMT", + "Date": "Fri, 03 Feb 2023 02:56:00 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4f853105-c03a-4f07-8af5-e2f81f6aae4d?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", + "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/aef34082-211e-425e-8eae-a9b9773c46b0?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", "Pragma": "no-cache", "Retry-After": "2", "Server": [ @@ -282,14 +283,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3d903514-5ed7-4e91-9e66-94b6a2a157c0", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7994", + "x-ms-correlation-request-id": "3c8cdc44-d727-4943-b700-ed75e4bda123", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "4f853105-c03a-4f07-8af5-e2f81f6aae4d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030602Z:3d903514-5ed7-4e91-9e66-94b6a2a157c0", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "aef34082-211e-425e-8eae-a9b9773c46b0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025601Z:3c8cdc44-d727-4943-b700-ed75e4bda123", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { + "name": "mysnapshotaaa", "id": "/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/resourceGroups/myjstest/providers/Microsoft.Compute/snapshots/mysnapshotaaa", "type": "Microsoft.Compute/snapshots", "location": "eastus", @@ -303,7 +305,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4f853105-c03a-4f07-8af5-e2f81f6aae4d?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/aef34082-211e-425e-8eae-a9b9773c46b0?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -311,8 +313,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "9b4dd090-17e0-4b6a-8a09-e3797ef609f1" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "1967aaeb-3a7f-4b18-85e1-5e15245749c8" }, "RequestBody": null, "StatusCode": 200, @@ -320,7 +322,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:02 GMT", + "Date": "Fri, 03 Feb 2023 02:56:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -332,21 +334,21 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "523d78ce-c614-43ef-879e-b4c7433032d7", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399928", + "x-ms-correlation-request-id": "6bd63721-c823-4d41-8e4a-c68d03e69e70", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399984", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "98b07042-cbfc-4907-ad97-eaf1a85f5106", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030602Z:523d78ce-c614-43ef-879e-b4c7433032d7", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "8d9215f7-676d-4909-989a-4904bbe1a2ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025601Z:6bd63721-c823-4d41-8e4a-c68d03e69e70", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:02.3184988\u002B00:00", + "startTime": "2023-02-03T02:56:00.7872941\u002B00:00", "status": "InProgress", - "name": "4f853105-c03a-4f07-8af5-e2f81f6aae4d" + "name": "aef34082-211e-425e-8eae-a9b9773c46b0" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4f853105-c03a-4f07-8af5-e2f81f6aae4d?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/aef34082-211e-425e-8eae-a9b9773c46b0?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -354,8 +356,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "25ac57af-bd14-4a2e-bcf1-e965f6a1e934" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "e72163ed-03d1-4f74-b301-6812244ea727" }, "RequestBody": null, "StatusCode": 200, @@ -363,7 +365,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:02 GMT", + "Date": "Fri, 03 Feb 2023 02:56:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -374,21 +376,21 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f08d550c-d339-41fa-af07-f478da4b8f1a", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399927", + "x-ms-correlation-request-id": "8f733c1b-28f1-4cc5-9713-24186b668089", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399983", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "35e5e648-77ab-43d0-a961-2e2b6652df9e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030603Z:f08d550c-d339-41fa-af07-f478da4b8f1a", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "f1f66d70-44d8-494d-93b4-efb32b2fd96f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025601Z:8f733c1b-28f1-4cc5-9713-24186b668089", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:02.3184988\u002B00:00", + "startTime": "2023-02-03T02:56:00.7872941\u002B00:00", "status": "InProgress", - "name": "4f853105-c03a-4f07-8af5-e2f81f6aae4d" + "name": "aef34082-211e-425e-8eae-a9b9773c46b0" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4f853105-c03a-4f07-8af5-e2f81f6aae4d?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/aef34082-211e-425e-8eae-a9b9773c46b0?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -396,8 +398,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "0d9fcce6-02c2-42e1-a01e-3c05add5e185" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "aab7c5e8-9c79-432d-8262-fbe3053f0062" }, "RequestBody": null, "StatusCode": 200, @@ -405,7 +407,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:13 GMT", + "Date": "Fri, 03 Feb 2023 02:56:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -416,16 +418,16 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fabf54bc-b6a7-4609-ac4e-6734d81aa3cd", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399924", + "x-ms-correlation-request-id": "57574aa5-4db9-43d0-97a1-3296097afc4a", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399980", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "ffe4da88-96fe-4be2-9b5a-7693276f8e61", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030613Z:fabf54bc-b6a7-4609-ac4e-6734d81aa3cd", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "077483f3-919e-4e04-acbe-de3df0394c75", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025612Z:57574aa5-4db9-43d0-97a1-3296097afc4a", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:02.3184988\u002B00:00", - "endTime": "2023-01-11T03:06:03.4278649\u002B00:00", + "startTime": "2023-02-03T02:56:00.7872941\u002B00:00", + "endTime": "2023-02-03T02:56:01.943538\u002B00:00", "status": "Succeeded", "properties": { "output": { @@ -441,7 +443,7 @@ "creationData": { "createOption": "Copy", "sourceResourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa", - "sourceUniqueId": "7fc45ce0-e32f-4a21-8444-bc33ba7f3f5c" + "sourceUniqueId": "85648286-5976-42a8-9c4e-c9447a884b35" }, "diskSizeGB": 200, "encryption": { @@ -450,15 +452,15 @@ "incremental": false, "networkAccessPolicy": "AllowAll", "publicNetworkAccess": "Enabled", - "timeCreated": "2023-01-11T03:06:02.3184988\u002B00:00", + "timeCreated": "2023-02-03T02:56:00.7872941\u002B00:00", "provisioningState": "Succeeded", "diskState": "Unattached", "diskSizeBytes": 214748364800, - "uniqueId": "4a1e3fbb-5bf9-4956-a163-1b39171f92ba" + "uniqueId": "b8d3a6ad-bcad-4ca0-9560-8224feceea70" } } }, - "name": "4f853105-c03a-4f07-8af5-e2f81f6aae4d" + "name": "aef34082-211e-425e-8eae-a9b9773c46b0" } }, { @@ -470,8 +472,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "9501c20b-57f6-49dc-b5cc-6fb2a7ff0905" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "44d4d9e2-59ab-4ded-b3a2-47923a0b19fa" }, "RequestBody": null, "StatusCode": 200, @@ -479,7 +481,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:13 GMT", + "Date": "Fri, 03 Feb 2023 02:56:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -490,12 +492,12 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7efe932d-b8f3-4681-bcf2-9d3084422875", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;14995,Microsoft.Compute/LowCostGet30Min;119950", + "x-ms-correlation-request-id": "3ed04776-9f96-4878-b463-8df4847e6451", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;14995,Microsoft.Compute/LowCostGet30Min;119986", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "f7f6e219-0014-4488-b6ab-7ef249406f2f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030614Z:7efe932d-b8f3-4681-bcf2-9d3084422875", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "0d626657-4e89-4f06-8728-0a511ba9b5ec", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025612Z:3ed04776-9f96-4878-b463-8df4847e6451", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { "name": "mysnapshotaaa", @@ -510,7 +512,7 @@ "creationData": { "createOption": "Copy", "sourceResourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa", - "sourceUniqueId": "7fc45ce0-e32f-4a21-8444-bc33ba7f3f5c" + "sourceUniqueId": "85648286-5976-42a8-9c4e-c9447a884b35" }, "diskSizeGB": 200, "encryption": { @@ -519,11 +521,11 @@ "incremental": false, "networkAccessPolicy": "AllowAll", "publicNetworkAccess": "Enabled", - "timeCreated": "2023-01-11T03:06:02.3184988\u002B00:00", + "timeCreated": "2023-02-03T02:56:00.7872941\u002B00:00", "provisioningState": "Succeeded", "diskState": "Unattached", "diskSizeBytes": 214748364800, - "uniqueId": "4a1e3fbb-5bf9-4956-a163-1b39171f92ba" + "uniqueId": "b8d3a6ad-bcad-4ca0-9560-8224feceea70" } } }, @@ -537,8 +539,8 @@ "Connection": "keep-alive", "Content-Length": "263", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "3aa57d57-49f2-47b9-bf0d-f6b53f64c063" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "f6e41b58-c0e4-4f97-a9ce-5b1f32d0080d" }, "RequestBody": { "location": "eastus", @@ -558,11 +560,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/adeb934d-9168-42ad-a134-c66b4654249c?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/0dabd705-2bdb-4873-add0-5c7adc766713?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "Cache-Control": "no-cache", "Content-Length": "710", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:16 GMT", + "Date": "Fri, 03 Feb 2023 02:56:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -571,11 +573,11 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d541d4f5-3ce0-4ba2-8032-3c4c065bd8dd", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;194", + "x-ms-correlation-request-id": "1502045f-b25e-4572-9807-bf27ea593d38", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;198", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "adeb934d-9168-42ad-a134-c66b4654249c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030617Z:d541d4f5-3ce0-4ba2-8032-3c4c065bd8dd" + "x-ms-request-id": "0dabd705-2bdb-4873-add0-5c7adc766713", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025616Z:1502045f-b25e-4572-9807-bf27ea593d38" }, "ResponseBody": { "name": "myimagesaaa", @@ -601,7 +603,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/adeb934d-9168-42ad-a134-c66b4654249c?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/0dabd705-2bdb-4873-add0-5c7adc766713?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -609,8 +611,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "949c43b0-16e0-417d-b72e-e254dd932252" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "6445bcfb-1743-405c-9260-d69456ab954d" }, "RequestBody": null, "StatusCode": 200, @@ -618,7 +620,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:17 GMT", + "Date": "Fri, 03 Feb 2023 02:56:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -629,20 +631,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ec0f1440-2794-483b-a102-5490aa751306", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29943", + "x-ms-correlation-request-id": "8d8d4ff9-cb21-4273-9268-d12412e91686", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29987", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "8043440e-5300-4408-8923-50b477bb3519", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030617Z:ec0f1440-2794-483b-a102-5490aa751306" + "x-ms-request-id": "a829e295-dcf5-41e9-85f5-9bc70096d9e2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025617Z:8d8d4ff9-cb21-4273-9268-d12412e91686" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:16.1043537\u002B00:00", + "startTime": "2023-02-03T02:56:15.3478206\u002B00:00", "status": "InProgress", - "name": "adeb934d-9168-42ad-a134-c66b4654249c" + "name": "0dabd705-2bdb-4873-add0-5c7adc766713" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/adeb934d-9168-42ad-a134-c66b4654249c?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/0dabd705-2bdb-4873-add0-5c7adc766713?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -650,8 +652,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "362a80ca-a38c-42ea-879a-755230b0a894" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "92ed306d-417d-451d-9346-0e66f5e04ecf" }, "RequestBody": null, "StatusCode": 200, @@ -659,7 +661,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:17 GMT", + "Date": "Fri, 03 Feb 2023 02:56:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -670,20 +672,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e39c882d-71a5-4a2e-805e-cf8586fba4a5", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29942", + "x-ms-correlation-request-id": "8faf2e2c-3de0-4868-be8b-0af44cae6ba3", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29986", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "a24ffdb2-16cd-4a86-8802-d1f0bdfc389a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030618Z:e39c882d-71a5-4a2e-805e-cf8586fba4a5" + "x-ms-request-id": "465bd8b5-14fa-4418-9e58-ea56408aae26", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025617Z:8faf2e2c-3de0-4868-be8b-0af44cae6ba3" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:16.1043537\u002B00:00", + "startTime": "2023-02-03T02:56:15.3478206\u002B00:00", "status": "InProgress", - "name": "adeb934d-9168-42ad-a134-c66b4654249c" + "name": "0dabd705-2bdb-4873-add0-5c7adc766713" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/adeb934d-9168-42ad-a134-c66b4654249c?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/0dabd705-2bdb-4873-add0-5c7adc766713?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -691,8 +693,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "87e985bf-ac01-4035-ac20-6bdbb77dbefc" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "2937882b-e640-4c26-9516-54e1cc37f021" }, "RequestBody": null, "StatusCode": 200, @@ -700,7 +702,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:20 GMT", + "Date": "Fri, 03 Feb 2023 02:56:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -711,20 +713,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "90f39f77-65cc-4846-8f0f-a9044b242b37", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29941", + "x-ms-correlation-request-id": "5fe3891e-6330-4ca0-a3ce-7c060c910dd7", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29985", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "43a24ceb-ad41-4c27-9bef-28c4eb9ac5f8", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030620Z:90f39f77-65cc-4846-8f0f-a9044b242b37" + "x-ms-request-id": "57748389-8c16-4ea0-ac56-582613869470", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025620Z:5fe3891e-6330-4ca0-a3ce-7c060c910dd7" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:16.1043537\u002B00:00", + "startTime": "2023-02-03T02:56:15.3478206\u002B00:00", "status": "InProgress", - "name": "adeb934d-9168-42ad-a134-c66b4654249c" + "name": "0dabd705-2bdb-4873-add0-5c7adc766713" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/adeb934d-9168-42ad-a134-c66b4654249c?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/0dabd705-2bdb-4873-add0-5c7adc766713?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -732,8 +734,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "d2cb321a-13e2-40d6-87dc-a9ecd6c46854" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "e7ae6540-51bc-4923-9d46-6448cc30787b" }, "RequestBody": null, "StatusCode": 200, @@ -741,7 +743,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:22 GMT", + "Date": "Fri, 03 Feb 2023 02:56:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -752,17 +754,17 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "14cb7cc4-85cb-4e59-8407-9fb2f0330510", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29940", + "x-ms-correlation-request-id": "b7d538c6-0797-4d71-9393-3146aa5028d4", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29984", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "a9528aa3-1efb-4302-a6b7-dc3008cc5029", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030623Z:14cb7cc4-85cb-4e59-8407-9fb2f0330510" + "x-ms-request-id": "29a23168-1243-4849-8780-e59f81510dde", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025622Z:b7d538c6-0797-4d71-9393-3146aa5028d4" }, "ResponseBody": { - "startTime": "2023-01-11T03:06:16.1043537\u002B00:00", - "endTime": "2023-01-11T03:06:21.2136873\u002B00:00", + "startTime": "2023-02-03T02:56:15.3478206\u002B00:00", + "endTime": "2023-02-03T02:56:20.457215\u002B00:00", "status": "Succeeded", - "name": "adeb934d-9168-42ad-a134-c66b4654249c" + "name": "0dabd705-2bdb-4873-add0-5c7adc766713" } }, { @@ -774,8 +776,8 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "41d6f564-82a5-4237-8e89-2cbf9be065e0" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "b6af647d-1385-480e-aa96-0fc87f35c22e" }, "RequestBody": null, "StatusCode": 200, @@ -783,7 +785,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:06:23 GMT", + "Date": "Fri, 03 Feb 2023 02:56:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -794,11 +796,11 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5131198d-6def-4417-b98d-5d2cbabd1597", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetImages3Min;358,Microsoft.Compute/GetImages30Min;1769", + "x-ms-correlation-request-id": "2905bbda-88ad-4f88-95f4-a65f2f68b148", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetImages3Min;359,Microsoft.Compute/GetImages30Min;1794", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "6b2a8ecc-743d-4520-afb8-296657635a2b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T030623Z:5131198d-6def-4417-b98d-5d2cbabd1597" + "x-ms-request-id": "2a34001a-3233-40a1-8274-752bf4107727", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025623Z:2905bbda-88ad-4f88-95f4-a65f2f68b148" }, "ResponseBody": { "name": "myimagesaaa", diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.json b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.json index ef6f7d8fc35a..c0b239b8c257 100644 --- a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.json +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.json @@ -8,19 +8,19 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "87fa9a28-11e8-49fe-b393-b7fd53a72ec8" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "797e18cf-0c3a-48bd-8d9e-68324d85fdc1" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/04fc6290-13fe-43d8-a861-2f8cf31686ef?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/716fef0a-43c8-4788-aeae-37f8cd98b313?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 11 Jan 2023 03:17:44 GMT", + "Date": "Fri, 03 Feb 2023 02:56:30 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/04fc6290-13fe-43d8-a861-2f8cf31686ef?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026monitor=true\u0026api-version=2021-11-01", + "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/716fef0a-43c8-4788-aeae-37f8cd98b313?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026monitor=true\u0026api-version=2021-11-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -28,24 +28,24 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6e93f0cd-9e91-4d3f-8e1a-07228e413e39", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteImages3Min;119,Microsoft.Compute/DeleteImages30Min;596", + "x-ms-correlation-request-id": "47a091aa-9630-4e80-9e65-7e236a2bce16", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteImages3Min;119,Microsoft.Compute/DeleteImages30Min;598", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "04fc6290-13fe-43d8-a861-2f8cf31686ef", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031744Z:6e93f0cd-9e91-4d3f-8e1a-07228e413e39" + "x-ms-request-id": "716fef0a-43c8-4788-aeae-37f8cd98b313", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025630Z:47a091aa-9630-4e80-9e65-7e236a2bce16" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/04fc6290-13fe-43d8-a861-2f8cf31686ef?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/716fef0a-43c8-4788-aeae-37f8cd98b313?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "aa33931e-6ef8-4243-85f1-59ea4d24e312" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "2b5e8f2b-0bd6-492c-820e-863805e5cf50" }, "RequestBody": null, "StatusCode": 200, @@ -53,7 +53,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:17:45 GMT", + "Date": "Fri, 03 Feb 2023 02:56:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -64,28 +64,28 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "739bf213-c5c2-45ce-8547-da0f6ccf7bc2", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29958", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "78ff9f47-470f-48dd-a473-d4db78236c7e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031745Z:739bf213-c5c2-45ce-8547-da0f6ccf7bc2" + "x-ms-correlation-request-id": "43f2ab33-ed01-441c-a346-48136462830b", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29983", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "50eb47d0-1ed5-4b82-a374-8e01aea55f60", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025631Z:43f2ab33-ed01-441c-a346-48136462830b" }, "ResponseBody": { - "startTime": "2023-01-11T03:17:44.6618533\u002B00:00", + "startTime": "2023-02-03T02:56:30.3947051\u002B00:00", "status": "InProgress", - "name": "04fc6290-13fe-43d8-a861-2f8cf31686ef" + "name": "716fef0a-43c8-4788-aeae-37f8cd98b313" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/04fc6290-13fe-43d8-a861-2f8cf31686ef?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/716fef0a-43c8-4788-aeae-37f8cd98b313?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "3b52880a-0cd2-4dc8-b9b0-e267c5058aab" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "b5f64e41-d769-4f53-a04b-2398f4459ec7" }, "RequestBody": null, "StatusCode": 200, @@ -93,7 +93,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:17:45 GMT", + "Date": "Fri, 03 Feb 2023 02:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -104,28 +104,28 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "74ce7a0e-811a-45c3-9e34-4100793b42a2", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29957", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "56c505d0-55f6-49c4-adfb-1cd58f145df0", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031745Z:74ce7a0e-811a-45c3-9e34-4100793b42a2" + "x-ms-correlation-request-id": "51affaa6-3bc1-4625-92dc-1c2e3717b768", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29982", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "ab64a04d-f571-4e68-90d9-e6336db831b5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025631Z:51affaa6-3bc1-4625-92dc-1c2e3717b768" }, "ResponseBody": { - "startTime": "2023-01-11T03:17:44.6618533\u002B00:00", + "startTime": "2023-02-03T02:56:30.3947051\u002B00:00", "status": "InProgress", - "name": "04fc6290-13fe-43d8-a861-2f8cf31686ef" + "name": "716fef0a-43c8-4788-aeae-37f8cd98b313" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/04fc6290-13fe-43d8-a861-2f8cf31686ef?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/716fef0a-43c8-4788-aeae-37f8cd98b313?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "125b69ec-6b48-474d-81b0-30a6adee0360" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "e57ee509-a9b9-4b87-a95a-82474b8d9eee" }, "RequestBody": null, "StatusCode": 200, @@ -133,7 +133,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:17:47 GMT", + "Date": "Fri, 03 Feb 2023 02:56:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -144,28 +144,28 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0d636498-5377-4e68-897a-1ffd1f385f9b", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29956", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "fddfb747-d7e9-463f-a67c-c33b300f8cb4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031748Z:0d636498-5377-4e68-897a-1ffd1f385f9b" + "x-ms-correlation-request-id": "f3b12458-0b76-4a2d-b0d9-ebf6b5b12290", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29981", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "5e9de0b3-e12d-4bf9-ae49-97974a9c656c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025633Z:f3b12458-0b76-4a2d-b0d9-ebf6b5b12290" }, "ResponseBody": { - "startTime": "2023-01-11T03:17:44.6618533\u002B00:00", + "startTime": "2023-02-03T02:56:30.3947051\u002B00:00", "status": "InProgress", - "name": "04fc6290-13fe-43d8-a861-2f8cf31686ef" + "name": "716fef0a-43c8-4788-aeae-37f8cd98b313" } }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/04fc6290-13fe-43d8-a861-2f8cf31686ef?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/operations/716fef0a-43c8-4788-aeae-37f8cd98b313?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7\u0026api-version=2021-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "f7284b91-a62c-462e-80b5-d0ba61b013ef" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "b03d8691-5103-4310-b10d-d3fbb51f27ea" }, "RequestBody": null, "StatusCode": 200, @@ -173,7 +173,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:17:50 GMT", + "Date": "Fri, 03 Feb 2023 02:56:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -184,17 +184,17 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc30e48f-512b-450a-af4a-7bd46d2dc91d", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29955", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "8f6ab75f-1ad6-4248-a39c-e0adede6d627", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031750Z:fc30e48f-512b-450a-af4a-7bd46d2dc91d" + "x-ms-correlation-request-id": "58158348-73bb-45f0-815b-2e357e83e85a", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29980", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "5ece0770-8325-4d3a-9a33-0f994f6825ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025636Z:58158348-73bb-45f0-815b-2e357e83e85a" }, "ResponseBody": { - "startTime": "2023-01-11T03:17:44.6618533\u002B00:00", - "endTime": "2023-01-11T03:17:49.7399463\u002B00:00", + "startTime": "2023-02-03T02:56:30.3947051\u002B00:00", + "endTime": "2023-02-03T02:56:35.4728313\u002B00:00", "status": "Succeeded", - "name": "04fc6290-13fe-43d8-a861-2f8cf31686ef" + "name": "716fef0a-43c8-4788-aeae-37f8cd98b313" } }, { @@ -204,18 +204,18 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "1f0b0cc0-39d2-4a85-acaf-3af2b289eed8" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "e621160e-2184-4047-bdd7-53d7b37dffd7" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/3c84e3bb-57a3-43e2-943d-21fc3c9e7840?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/1d6ede36-b681-4971-be97-5138f45a0bf4?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 11 Jan 2023 03:17:51 GMT", + "Date": "Fri, 03 Feb 2023 02:56:37 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/3c84e3bb-57a3-43e2-943d-21fc3c9e7840?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", + "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/1d6ede36-b681-4971-be97-5138f45a0bf4?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -223,24 +223,24 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f325f087-3368-467a-a082-bbece5ab780a", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteDisks3Min;2999,Microsoft.Compute/DeleteDisks30Min;23993", + "x-ms-correlation-request-id": "9a161744-e6c1-4fbe-b284-46355babcb84", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteDisks3Min;2999,Microsoft.Compute/DeleteDisks30Min;23997", "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "3c84e3bb-57a3-43e2-943d-21fc3c9e7840", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031752Z:f325f087-3368-467a-a082-bbece5ab780a", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "1d6ede36-b681-4971-be97-5138f45a0bf4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025638Z:9a161744-e6c1-4fbe-b284-46355babcb84", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/3c84e3bb-57a3-43e2-943d-21fc3c9e7840?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/1d6ede36-b681-4971-be97-5138f45a0bf4?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "56e5e523-4a12-4238-a8d5-043631555f1e" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "9d52143d-5215-417c-96d2-e6131bbe1073" }, "RequestBody": null, "StatusCode": 200, @@ -248,7 +248,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:17:52 GMT", + "Date": "Fri, 03 Feb 2023 02:56:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -259,18 +259,18 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5c48ec11-52c8-40f4-beb3-35eb1c7c0465", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399947", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c586534a-3b9b-4c0b-84d0-67317cab1fbc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031752Z:5c48ec11-52c8-40f4-beb3-35eb1c7c0465", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-correlation-request-id": "cd0c4c4f-e1ed-4c84-a2c4-9fd120fb0385", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399975", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "e231abe5-cd2d-4df6-b68d-e6683d69a7a8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025638Z:cd0c4c4f-e1ed-4c84-a2c4-9fd120fb0385", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { - "startTime": "2023-01-11T03:17:52.0174132\u002B00:00", - "endTime": "2023-01-11T03:17:52.2049121\u002B00:00", + "startTime": "2023-02-03T02:56:37.8651904\u002B00:00", + "endTime": "2023-02-03T02:56:38.0526892\u002B00:00", "status": "Succeeded", - "name": "3c84e3bb-57a3-43e2-943d-21fc3c9e7840" + "name": "1d6ede36-b681-4971-be97-5138f45a0bf4" } }, { @@ -280,18 +280,18 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "ecb657a3-07b6-402c-a061-d03f71a100c0" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "6b695cec-3a17-40bc-a75b-a9e6acb10475" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4b53cf4b-0b1e-4c84-aae8-cbd48c8a6dc6?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/156afe89-a8a4-4488-bc3f-568ccb503ee4?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 11 Jan 2023 03:17:53 GMT", + "Date": "Fri, 03 Feb 2023 02:56:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4b53cf4b-0b1e-4c84-aae8-cbd48c8a6dc6?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", + "Location": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/156afe89-a8a4-4488-bc3f-568ccb503ee4?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026monitor=true\u0026api-version=2021-12-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -299,24 +299,24 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "38072e07-386a-4a47-8d68-cd817045bc89", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteDisks3Min;2998,Microsoft.Compute/DeleteDisks30Min;23992", + "x-ms-correlation-request-id": "ff4b2bf0-77a7-479f-9d79-3fe694720c9b", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteDisks3Min;2998,Microsoft.Compute/DeleteDisks30Min;23996", "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "4b53cf4b-0b1e-4c84-aae8-cbd48c8a6dc6", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031753Z:38072e07-386a-4a47-8d68-cd817045bc89", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-request-id": "156afe89-a8a4-4488-bc3f-568ccb503ee4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025639Z:ff4b2bf0-77a7-479f-9d79-3fe694720c9b", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/4b53cf4b-0b1e-4c84-aae8-cbd48c8a6dc6?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", + "RequestUri": "https://management.azure.com/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/providers/Microsoft.Compute/locations/eastus/DiskOperations/156afe89-a8a4-4488-bc3f-568ccb503ee4?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd\u0026api-version=2021-12-01", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "6b75efd4-ca45-458d-adb7-8c3b988979d7" + "User-Agent": "azsdk-js-arm-compute/17.3.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "d164338f-6242-44e0-bbdc-9fc6ef053fba" }, "RequestBody": null, "StatusCode": 200, @@ -324,7 +324,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Jan 2023 03:17:53 GMT", + "Date": "Fri, 03 Feb 2023 02:56:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -335,45 +335,45 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "31b24319-9af5-44b1-ba0a-29c275b04b3a", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399946", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "c01fc552-aed0-462f-abfc-56211c82b2cc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031753Z:31b24319-9af5-44b1-ba0a-29c275b04b3a", - "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133123218689544584" + "x-ms-correlation-request-id": "f232ff27-0e9b-4714-a130-2060919241cd", + "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399974", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "ea94ed4f-7fb0-4603-bc1a-0acf302e7d75", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025640Z:f232ff27-0e9b-4714-a130-2060919241cd", + "x-ms-served-by": "46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_133119782305225926" }, "ResponseBody": { - "startTime": "2023-01-11T03:17:53.4236638\u002B00:00", - "endTime": "2023-01-11T03:17:53.5955288\u002B00:00", + "startTime": "2023-02-03T02:56:39.3651767\u002B00:00", + "endTime": "2023-02-03T02:56:39.5058003\u002B00:00", "status": "Succeeded", - "name": "4b53cf4b-0b1e-4c84-aae8-cbd48c8a6dc6" + "name": "156afe89-a8a4-4488-bc3f-568ccb503ee4" } }, { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa?api-version=2018-11-30", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa?api-version=2023-01-31", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-msi/2.0.0 core-rest-pipeline/1.10.0 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "f3989176-4d72-4822-bdaf-985cdd0e3e1b" + "User-Agent": "azsdk-js-arm-msi/2.1.0 core-rest-pipeline/1.10.2 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", + "x-ms-client-request-id": "634812e1-98c9-4c33-aed7-e8244f40360f" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 11 Jan 2023 03:18:03 GMT", + "Date": "Fri, 03 Feb 2023 02:56:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e7aa4916-c80d-4401-9026-74aa6d06b801", + "x-ms-correlation-request-id": "9a3eac11-bc50-4c0a-a0a4-dd731395a9e6", "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "e7aa4916-c80d-4401-9026-74aa6d06b801", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230111T031803Z:e7aa4916-c80d-4401-9026-74aa6d06b801" + "x-ms-request-id": "9a3eac11-bc50-4c0a-a0a4-dd731395a9e6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230203T025647Z:9a3eac11-bc50-4c0a-a0a4-dd731395a9e6" }, "ResponseBody": null } diff --git a/sdk/msi/arm-msi/CHANGELOG.md b/sdk/msi/arm-msi/CHANGELOG.md index 43a1e799cc25..2ccbc5af6485 100644 --- a/sdk/msi/arm-msi/CHANGELOG.md +++ b/sdk/msi/arm-msi/CHANGELOG.md @@ -1,13 +1,10 @@ # Release History -## 2.1.0-beta.3 (2023-01-29) +## 2.1.0 (2023-02-03) **Features** - Added operation group FederatedIdentityCredentials - - Added operation UserAssignedIdentities.listAssociatedResources - - Added Interface AssociatedResourcesListResult - - Added Interface AzureResource - Added Interface FederatedIdentityCredential - Added Interface FederatedIdentityCredentialsCreateOrUpdateOptionalParams - Added Interface FederatedIdentityCredentialsDeleteOptionalParams @@ -19,15 +16,15 @@ - Added Interface IdentityUpdate - Added Interface ProxyResource - Added Interface SystemAssignedIdentity + - Added Interface SystemData - Added Interface TrackedResource - - Added Interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams - - Added Interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams + - Added Type Alias CreatedByType - Added Type Alias FederatedIdentityCredentialsCreateOrUpdateResponse - Added Type Alias FederatedIdentityCredentialsGetResponse - Added Type Alias FederatedIdentityCredentialsListNextResponse - Added Type Alias FederatedIdentityCredentialsListResponse - - Added Type Alias UserAssignedIdentitiesListAssociatedResourcesNextResponse - - Added Type Alias UserAssignedIdentitiesListAssociatedResourcesResponse + - Interface Resource has a new optional parameter systemData + - Added Enum KnownCreatedByType - Added function getContinuationToken diff --git a/sdk/msi/arm-msi/README.md b/sdk/msi/arm-msi/README.md index e8f833aa03d0..22ab05af1e0d 100644 --- a/sdk/msi/arm-msi/README.md +++ b/sdk/msi/arm-msi/README.md @@ -6,7 +6,7 @@ The Managed Service Identity Client. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-msi) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-msi?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-msi) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/msi/arm-msi/_meta.json b/sdk/msi/arm-msi/_meta.json index 9a35dd077e63..432fecae4356 100644 --- a/sdk/msi/arm-msi/_meta.json +++ b/sdk/msi/arm-msi/_meta.json @@ -1,7 +1,7 @@ { - "commit": "fda2db441da3f1fab31bb235e97da3e33c8e3903", - "readme": "specification\\msi\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\msi\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "commit": "9f33c53e4b6d09e22329df29ac2ef404fe2149de", + "readme": "specification/msi/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\msi\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", "use": "@autorest/typescript@6.0.0-rc.7" diff --git a/sdk/msi/arm-msi/package.json b/sdk/msi/arm-msi/package.json index 9707c293d04d..394d77b99a0a 100644 --- a/sdk/msi/arm-msi/package.json +++ b/sdk/msi/arm-msi/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ManagedServiceIdentityClient.", - "version": "2.1.0-beta.3", + "version": "2.1.0", "engines": { "node": ">=14.0.0" }, diff --git a/sdk/msi/arm-msi/review/arm-msi.api.md b/sdk/msi/arm-msi/review/arm-msi.api.md index b50db2c1089f..c3de03dac18d 100644 --- a/sdk/msi/arm-msi/review/arm-msi.api.md +++ b/sdk/msi/arm-msi/review/arm-msi.api.md @@ -8,23 +8,6 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -// @public -export interface AssociatedResourcesListResult { - readonly nextLink?: string; - readonly totalCount?: number; - readonly value?: AzureResource[]; -} - -// @public -export interface AzureResource { - readonly id?: string; - readonly name?: string; - readonly resourceGroup?: string; - readonly subscriptionDisplayName?: string; - readonly subscriptionId?: string; - readonly type?: string; -} - // @public export interface CloudError { error?: CloudErrorBody; @@ -38,6 +21,9 @@ export interface CloudErrorBody { target?: string; } +// @public +export type CreatedByType = string; + // @public export interface FederatedIdentityCredential extends ProxyResource { audiences?: string[]; @@ -114,6 +100,14 @@ export interface IdentityUpdate extends Resource { readonly tenantId?: string; } +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + // @public (undocumented) export class ManagedServiceIdentityClient extends coreClient.ServiceClient { // (undocumented) @@ -187,6 +181,7 @@ export interface ProxyResource extends Resource { export interface Resource { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -214,6 +209,16 @@ export interface SystemAssignedIdentity extends ProxyResource { readonly tenantId?: string; } +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + // @public export interface TrackedResource extends Resource { location: string; @@ -227,7 +232,6 @@ export interface UserAssignedIdentities { createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Identity, options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesDeleteOptionalParams): Promise; get(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesGetOptionalParams): Promise; - listAssociatedResources(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: UserAssignedIdentitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: UserAssignedIdentitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, resourceName: string, parameters: IdentityUpdate, options?: UserAssignedIdentitiesUpdateOptionalParams): Promise; @@ -251,25 +255,6 @@ export interface UserAssignedIdentitiesGetOptionalParams extends coreClient.Oper // @public export type UserAssignedIdentitiesGetResponse = Identity; -// @public -export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult; - -// @public -export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams extends coreClient.OperationOptions { - filter?: string; - orderby?: string; - skip?: number; - skiptoken?: string; - top?: number; -} - -// @public -export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult; - // @public export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.ts b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.ts index fa1c1cf3b2c9..5a027016e8c1 100644 --- a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.ts +++ b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.ts @@ -21,16 +21,18 @@ dotenv.config(); * This sample demonstrates how to Create or update a federated identity credential under the specified user assigned identity. * * @summary Create or update a federated identity credential under the specified user assigned identity. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialCreate.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialCreate.json */ async function federatedIdentityCredentialCreate() { - const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; const resourceName = "resourceName"; const federatedIdentityCredentialResourceName = "ficResourceName"; const parameters: FederatedIdentityCredential = { audiences: ["api://AzureADTokenExchange"], - issuer: "https://oidc.prod-aks.azure.com/IssuerGUID", + issuer: "https://oidc.prod-aks.azure.com/TenantGUID/IssuerGUID", subject: "system:serviceaccount:ns:svcaccount" }; const credential = new DefaultAzureCredential(); diff --git a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsDeleteSample.ts b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsDeleteSample.ts index 8898594ffd7f..0528a1ce87ec 100644 --- a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsDeleteSample.ts +++ b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsDeleteSample.ts @@ -18,10 +18,12 @@ dotenv.config(); * This sample demonstrates how to Deletes the federated identity credential. * * @summary Deletes the federated identity credential. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialDelete.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialDelete.json */ async function federatedIdentityCredentialDelete() { - const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; const resourceName = "resourceName"; const federatedIdentityCredentialResourceName = "ficResourceName"; diff --git a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsGetSample.ts b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsGetSample.ts index f8bfb318bfaa..a998eeaefaca 100644 --- a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsGetSample.ts +++ b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsGetSample.ts @@ -18,10 +18,12 @@ dotenv.config(); * This sample demonstrates how to Gets the federated identity credential. * * @summary Gets the federated identity credential. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialGet.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialGet.json */ async function federatedIdentityCredentialGet() { - const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; const resourceName = "resourceName"; const federatedIdentityCredentialResourceName = "ficResourceName"; diff --git a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsListSample.ts b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsListSample.ts index 86c202da06c9..f01babcd7999 100644 --- a/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsListSample.ts +++ b/sdk/msi/arm-msi/samples-dev/federatedIdentityCredentialsListSample.ts @@ -18,10 +18,12 @@ dotenv.config(); * This sample demonstrates how to Lists all the federated identity credentials under the specified user assigned identity. * * @summary Lists all the federated identity credentials under the specified user assigned identity. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialList.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialList.json */ async function federatedIdentityCredentialList() { - const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; const resourceName = "resourceName"; const credential = new DefaultAzureCredential(); diff --git a/sdk/msi/arm-msi/samples-dev/operationsListSample.ts b/sdk/msi/arm-msi/samples-dev/operationsListSample.ts index 0adea05296b6..0fd5c7f07df6 100644 --- a/sdk/msi/arm-msi/samples-dev/operationsListSample.ts +++ b/sdk/msi/arm-msi/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.ManagedIdentity provider * * @summary Lists available operations for the Microsoft.ManagedIdentity provider - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/MsiOperationsList.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/MsiOperationsList.json */ async function msiOperationsList() { const subscriptionId = diff --git a/sdk/msi/arm-msi/samples-dev/systemAssignedIdentitiesGetByScopeSample.ts b/sdk/msi/arm-msi/samples-dev/systemAssignedIdentitiesGetByScopeSample.ts index 5d20c468c596..26e116e9516b 100644 --- a/sdk/msi/arm-msi/samples-dev/systemAssignedIdentitiesGetByScopeSample.ts +++ b/sdk/msi/arm-msi/samples-dev/systemAssignedIdentitiesGetByScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the systemAssignedIdentity available under the specified RP scope. * * @summary Gets the systemAssignedIdentity available under the specified RP scope. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/SystemAssignedIdentityGet.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/SystemAssignedIdentityGet.json */ async function msiOperationsList() { const subscriptionId = diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.ts b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.ts index dc28cb0f71a0..ff4caa619720 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.ts +++ b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an identity in the specified subscription and resource group. * * @summary Create or update an identity in the specified subscription and resource group. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityCreate.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityCreate.json */ async function identityCreate() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesDeleteSample.ts b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesDeleteSample.ts index 8d5ebfaf6440..a6eb03b7cdfc 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesDeleteSample.ts +++ b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the identity. * * @summary Deletes the identity. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityDelete.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityDelete.json */ async function identityDelete() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesGetSample.ts b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesGetSample.ts index 7e9a4f2646a5..d80a5767c39d 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesGetSample.ts +++ b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the identity. * * @summary Gets the identity. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityGet.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityGet.json */ async function identityGet() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListByResourceGroupSample.ts b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListByResourceGroupSample.ts index 1f5a941c7925..51ce0e2cbd82 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListByResourceGroupSample.ts +++ b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the userAssignedIdentities available under the specified ResourceGroup. * * @summary Lists all the userAssignedIdentities available under the specified ResourceGroup. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityListByResourceGroup.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListByResourceGroup.json */ async function identityListByResourceGroup() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListBySubscriptionSample.ts b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListBySubscriptionSample.ts index e0f55ed1a56c..cef25fcd2f14 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListBySubscriptionSample.ts +++ b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the userAssignedIdentities available under the specified subscription. * * @summary Lists all the userAssignedIdentities available under the specified subscription. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityListBySubscription.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListBySubscription.json */ async function identityListBySubscription() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesUpdateSample.ts b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesUpdateSample.ts index f49bda39ddd2..bf2747718b8d 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesUpdateSample.ts +++ b/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update an identity in the specified subscription and resource group. * * @summary Update an identity in the specified subscription and resource group. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityUpdate.json + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityUpdate.json */ async function identityUpdate() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/msi/arm-msi/samples/v2/javascript/README.md b/sdk/msi/arm-msi/samples/v2/javascript/README.md new file mode 100644 index 000000000000..8d9d04848fc5 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/README.md @@ -0,0 +1,72 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [federatedIdentityCredentialsCreateOrUpdateSample.js][federatedidentitycredentialscreateorupdatesample] | Create or update a federated identity credential under the specified user assigned identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialCreate.json | +| [federatedIdentityCredentialsDeleteSample.js][federatedidentitycredentialsdeletesample] | Deletes the federated identity credential. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialDelete.json | +| [federatedIdentityCredentialsGetSample.js][federatedidentitycredentialsgetsample] | Gets the federated identity credential. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialGet.json | +| [federatedIdentityCredentialsListSample.js][federatedidentitycredentialslistsample] | Lists all the federated identity credentials under the specified user assigned identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialList.json | +| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.ManagedIdentity provider x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/MsiOperationsList.json | +| [systemAssignedIdentitiesGetByScopeSample.js][systemassignedidentitiesgetbyscopesample] | Gets the systemAssignedIdentity available under the specified RP scope. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/SystemAssignedIdentityGet.json | +| [userAssignedIdentitiesCreateOrUpdateSample.js][userassignedidentitiescreateorupdatesample] | Create or update an identity in the specified subscription and resource group. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityCreate.json | +| [userAssignedIdentitiesDeleteSample.js][userassignedidentitiesdeletesample] | Deletes the identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityDelete.json | +| [userAssignedIdentitiesGetSample.js][userassignedidentitiesgetsample] | Gets the identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityGet.json | +| [userAssignedIdentitiesListByResourceGroupSample.js][userassignedidentitieslistbyresourcegroupsample] | Lists all the userAssignedIdentities available under the specified ResourceGroup. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListByResourceGroup.json | +| [userAssignedIdentitiesListBySubscriptionSample.js][userassignedidentitieslistbysubscriptionsample] | Lists all the userAssignedIdentities available under the specified subscription. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListBySubscription.json | +| [userAssignedIdentitiesUpdateSample.js][userassignedidentitiesupdatesample] | Update an identity in the specified subscription and resource group. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node federatedIdentityCredentialsCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env MSI_SUBSCRIPTION_ID="" MSI_RESOURCE_GROUP="" node federatedIdentityCredentialsCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[federatedidentitycredentialscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsCreateOrUpdateSample.js +[federatedidentitycredentialsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsDeleteSample.js +[federatedidentitycredentialsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsGetSample.js +[federatedidentitycredentialslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsListSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/operationsListSample.js +[systemassignedidentitiesgetbyscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/systemAssignedIdentitiesGetByScopeSample.js +[userassignedidentitiescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesCreateOrUpdateSample.js +[userassignedidentitiesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesDeleteSample.js +[userassignedidentitiesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesGetSample.js +[userassignedidentitieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListByResourceGroupSample.js +[userassignedidentitieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListBySubscriptionSample.js +[userassignedidentitiesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-msi?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi/README.md diff --git a/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsCreateOrUpdateSample.js b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsCreateOrUpdateSample.js new file mode 100644 index 000000000000..a2dcde5f098e --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsCreateOrUpdateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update a federated identity credential under the specified user assigned identity. + * + * @summary Create or update a federated identity credential under the specified user assigned identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialCreate.json + */ +async function federatedIdentityCredentialCreate() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const federatedIdentityCredentialResourceName = "ficResourceName"; + const parameters = { + audiences: ["api://AzureADTokenExchange"], + issuer: "https://oidc.prod-aks.azure.com/TenantGUID/IssuerGUID", + subject: "system:serviceaccount:ns:svcaccount", + }; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.federatedIdentityCredentials.createOrUpdate( + resourceGroupName, + resourceName, + federatedIdentityCredentialResourceName, + parameters + ); + console.log(result); +} + +async function main() { + federatedIdentityCredentialCreate(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsDeleteSample.js b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsDeleteSample.js new file mode 100644 index 000000000000..37abe5c4b74a --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the federated identity credential. + * + * @summary Deletes the federated identity credential. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialDelete.json + */ +async function federatedIdentityCredentialDelete() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const federatedIdentityCredentialResourceName = "ficResourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.federatedIdentityCredentials.delete( + resourceGroupName, + resourceName, + federatedIdentityCredentialResourceName + ); + console.log(result); +} + +async function main() { + federatedIdentityCredentialDelete(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsGetSample.js b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsGetSample.js new file mode 100644 index 000000000000..5ebee5d1bd66 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the federated identity credential. + * + * @summary Gets the federated identity credential. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialGet.json + */ +async function federatedIdentityCredentialGet() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const federatedIdentityCredentialResourceName = "ficResourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.federatedIdentityCredentials.get( + resourceGroupName, + resourceName, + federatedIdentityCredentialResourceName + ); + console.log(result); +} + +async function main() { + federatedIdentityCredentialGet(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsListSample.js b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsListSample.js new file mode 100644 index 000000000000..727447a4b846 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/federatedIdentityCredentialsListSample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all the federated identity credentials under the specified user assigned identity. + * + * @summary Lists all the federated identity credentials under the specified user assigned identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialList.json + */ +async function federatedIdentityCredentialList() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.federatedIdentityCredentials.list( + resourceGroupName, + resourceName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + federatedIdentityCredentialList(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/operationsListSample.js b/sdk/msi/arm-msi/samples/v2/javascript/operationsListSample.js new file mode 100644 index 000000000000..0e639a9078a0 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists available operations for the Microsoft.ManagedIdentity provider + * + * @summary Lists available operations for the Microsoft.ManagedIdentity provider + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/MsiOperationsList.json + */ +async function msiOperationsList() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + msiOperationsList(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/package.json b/sdk/msi/arm-msi/samples/v2/javascript/package.json new file mode 100644 index 000000000000..7c3752edb876 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-msi-js", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript", + "engines": { + "node": ">=14.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/msi/arm-msi" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi", + "dependencies": { + "@azure/arm-msi": "latest", + "dotenv": "latest", + "@azure/identity": "^2.0.1" + } +} diff --git a/sdk/msi/arm-msi/samples/v2/javascript/sample.env b/sdk/msi/arm-msi/samples/v2/javascript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/msi/arm-msi/samples/v2/javascript/systemAssignedIdentitiesGetByScopeSample.js b/sdk/msi/arm-msi/samples/v2/javascript/systemAssignedIdentitiesGetByScopeSample.js new file mode 100644 index 000000000000..2f1ccf7f5e84 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/systemAssignedIdentitiesGetByScopeSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the systemAssignedIdentity available under the specified RP scope. + * + * @summary Gets the systemAssignedIdentity available under the specified RP scope. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/SystemAssignedIdentityGet.json + */ +async function msiOperationsList() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const scope = "scope"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.systemAssignedIdentities.getByScope(scope); + console.log(result); +} + +async function main() { + msiOperationsList(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesCreateOrUpdateSample.js b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesCreateOrUpdateSample.js new file mode 100644 index 000000000000..80bbdcf89a44 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesCreateOrUpdateSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update an identity in the specified subscription and resource group. + * + * @summary Create or update an identity in the specified subscription and resource group. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityCreate.json + */ +async function identityCreate() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const parameters = { + location: "eastus", + tags: { key1: "value1", key2: "value2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.createOrUpdate( + resourceGroupName, + resourceName, + parameters + ); + console.log(result); +} + +async function main() { + identityCreate(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesDeleteSample.js b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesDeleteSample.js new file mode 100644 index 000000000000..d5d00d313880 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesDeleteSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the identity. + * + * @summary Deletes the identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityDelete.json + */ +async function identityDelete() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.delete(resourceGroupName, resourceName); + console.log(result); +} + +async function main() { + identityDelete(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesGetSample.js b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesGetSample.js new file mode 100644 index 000000000000..83b7b7e74cd6 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesGetSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the identity. + * + * @summary Gets the identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityGet.json + */ +async function identityGet() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.get(resourceGroupName, resourceName); + console.log(result); +} + +async function main() { + identityGet(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListByResourceGroupSample.js b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListByResourceGroupSample.js new file mode 100644 index 000000000000..7d7318c2de9a --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListByResourceGroupSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all the userAssignedIdentities available under the specified ResourceGroup. + * + * @summary Lists all the userAssignedIdentities available under the specified ResourceGroup. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListByResourceGroup.json + */ +async function identityListByResourceGroup() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.userAssignedIdentities.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + identityListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListBySubscriptionSample.js b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListBySubscriptionSample.js new file mode 100644 index 000000000000..60e6e36828a8 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesListBySubscriptionSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all the userAssignedIdentities available under the specified subscription. + * + * @summary Lists all the userAssignedIdentities available under the specified subscription. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListBySubscription.json + */ +async function identityListBySubscription() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.userAssignedIdentities.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + identityListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesUpdateSample.js b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesUpdateSample.js new file mode 100644 index 000000000000..08e2904f8804 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/javascript/userAssignedIdentitiesUpdateSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update an identity in the specified subscription and resource group. + * + * @summary Update an identity in the specified subscription and resource group. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityUpdate.json + */ +async function identityUpdate() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const parameters = { + location: "eastus", + tags: { key1: "value1", key2: "value2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.update( + resourceGroupName, + resourceName, + parameters + ); + console.log(result); +} + +async function main() { + identityUpdate(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/README.md b/sdk/msi/arm-msi/samples/v2/typescript/README.md new file mode 100644 index 000000000000..e29ec4eea343 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/README.md @@ -0,0 +1,85 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [federatedIdentityCredentialsCreateOrUpdateSample.ts][federatedidentitycredentialscreateorupdatesample] | Create or update a federated identity credential under the specified user assigned identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialCreate.json | +| [federatedIdentityCredentialsDeleteSample.ts][federatedidentitycredentialsdeletesample] | Deletes the federated identity credential. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialDelete.json | +| [federatedIdentityCredentialsGetSample.ts][federatedidentitycredentialsgetsample] | Gets the federated identity credential. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialGet.json | +| [federatedIdentityCredentialsListSample.ts][federatedidentitycredentialslistsample] | Lists all the federated identity credentials under the specified user assigned identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialList.json | +| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.ManagedIdentity provider x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/MsiOperationsList.json | +| [systemAssignedIdentitiesGetByScopeSample.ts][systemassignedidentitiesgetbyscopesample] | Gets the systemAssignedIdentity available under the specified RP scope. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/SystemAssignedIdentityGet.json | +| [userAssignedIdentitiesCreateOrUpdateSample.ts][userassignedidentitiescreateorupdatesample] | Create or update an identity in the specified subscription and resource group. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityCreate.json | +| [userAssignedIdentitiesDeleteSample.ts][userassignedidentitiesdeletesample] | Deletes the identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityDelete.json | +| [userAssignedIdentitiesGetSample.ts][userassignedidentitiesgetsample] | Gets the identity. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityGet.json | +| [userAssignedIdentitiesListByResourceGroupSample.ts][userassignedidentitieslistbyresourcegroupsample] | Lists all the userAssignedIdentities available under the specified ResourceGroup. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListByResourceGroup.json | +| [userAssignedIdentitiesListBySubscriptionSample.ts][userassignedidentitieslistbysubscriptionsample] | Lists all the userAssignedIdentities available under the specified subscription. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListBySubscription.json | +| [userAssignedIdentitiesUpdateSample.ts][userassignedidentitiesupdatesample] | Update an identity in the specified subscription and resource group. x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/federatedIdentityCredentialsCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env MSI_SUBSCRIPTION_ID="" MSI_RESOURCE_GROUP="" node dist/federatedIdentityCredentialsCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[federatedidentitycredentialscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsCreateOrUpdateSample.ts +[federatedidentitycredentialsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsDeleteSample.ts +[federatedidentitycredentialsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsGetSample.ts +[federatedidentitycredentialslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsListSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/operationsListSample.ts +[systemassignedidentitiesgetbyscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/systemAssignedIdentitiesGetByScopeSample.ts +[userassignedidentitiescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesCreateOrUpdateSample.ts +[userassignedidentitiesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesDeleteSample.ts +[userassignedidentitiesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesGetSample.ts +[userassignedidentitieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListByResourceGroupSample.ts +[userassignedidentitieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListBySubscriptionSample.ts +[userassignedidentitiesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-msi?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/msi/arm-msi/samples/v2/typescript/package.json b/sdk/msi/arm-msi/samples/v2/typescript/package.json new file mode 100644 index 000000000000..5fb7e0fc14f8 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-msi-ts", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript", + "engines": { + "node": ">=14.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/msi/arm-msi" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi", + "dependencies": { + "@azure/arm-msi": "latest", + "dotenv": "latest", + "@azure/identity": "^2.0.1" + }, + "devDependencies": { + "@types/node": "^14.0.0", + "typescript": "~4.8.0", + "rimraf": "latest" + } +} diff --git a/sdk/msi/arm-msi/samples/v2/typescript/sample.env b/sdk/msi/arm-msi/samples/v2/typescript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsCreateOrUpdateSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..5a027016e8c1 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsCreateOrUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + FederatedIdentityCredential, + ManagedServiceIdentityClient +} from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update a federated identity credential under the specified user assigned identity. + * + * @summary Create or update a federated identity credential under the specified user assigned identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialCreate.json + */ +async function federatedIdentityCredentialCreate() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const federatedIdentityCredentialResourceName = "ficResourceName"; + const parameters: FederatedIdentityCredential = { + audiences: ["api://AzureADTokenExchange"], + issuer: "https://oidc.prod-aks.azure.com/TenantGUID/IssuerGUID", + subject: "system:serviceaccount:ns:svcaccount" + }; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.federatedIdentityCredentials.createOrUpdate( + resourceGroupName, + resourceName, + federatedIdentityCredentialResourceName, + parameters + ); + console.log(result); +} + +async function main() { + federatedIdentityCredentialCreate(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsDeleteSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsDeleteSample.ts new file mode 100644 index 000000000000..0528a1ce87ec --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsDeleteSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the federated identity credential. + * + * @summary Deletes the federated identity credential. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialDelete.json + */ +async function federatedIdentityCredentialDelete() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const federatedIdentityCredentialResourceName = "ficResourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.federatedIdentityCredentials.delete( + resourceGroupName, + resourceName, + federatedIdentityCredentialResourceName + ); + console.log(result); +} + +async function main() { + federatedIdentityCredentialDelete(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsGetSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsGetSample.ts new file mode 100644 index 000000000000..a998eeaefaca --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the federated identity credential. + * + * @summary Gets the federated identity credential. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialGet.json + */ +async function federatedIdentityCredentialGet() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const federatedIdentityCredentialResourceName = "ficResourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.federatedIdentityCredentials.get( + resourceGroupName, + resourceName, + federatedIdentityCredentialResourceName + ); + console.log(result); +} + +async function main() { + federatedIdentityCredentialGet(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsListSample.ts similarity index 50% rename from sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.ts rename to sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsListSample.ts index 8ee59020a537..f01babcd7999 100644 --- a/sdk/msi/arm-msi/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.ts +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/federatedIdentityCredentialsListSample.ts @@ -8,44 +8,30 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - UserAssignedIdentitiesListAssociatedResourcesOptionalParams, - ManagedServiceIdentityClient -} from "@azure/arm-msi"; +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the associated resources for this identity. + * This sample demonstrates how to Lists all the federated identity credentials under the specified user assigned identity. * - * @summary Lists the associated resources for this identity. - * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityListAssociatedResources.json + * @summary Lists all the federated identity credentials under the specified user assigned identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialList.json */ -async function identityListAssociatedResources() { +async function federatedIdentityCredentialList() { const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || - "1cscb752-d7c9-463f-9731-fd31edada74a"; - const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "testrg"; - const resourceName = "testid"; - const filter = "contains(name, 'test')"; - const orderby = "name asc"; - const top = 10; - const skip = 1; - const options: UserAssignedIdentitiesListAssociatedResourcesOptionalParams = { - filter, - orderby, - top, - skip - }; + "c267c0e7-0a73-4789-9e17-d26aeb0904e5"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; const credential = new DefaultAzureCredential(); const client = new ManagedServiceIdentityClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.userAssignedIdentities.listAssociatedResources( + for await (let item of client.federatedIdentityCredentials.list( resourceGroupName, - resourceName, - options + resourceName )) { resArray.push(item); } @@ -53,7 +39,7 @@ async function identityListAssociatedResources() { } async function main() { - identityListAssociatedResources(); + federatedIdentityCredentialList(); } main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/operationsListSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..0fd5c7f07df6 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists available operations for the Microsoft.ManagedIdentity provider + * + * @summary Lists available operations for the Microsoft.ManagedIdentity provider + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/MsiOperationsList.json + */ +async function msiOperationsList() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + msiOperationsList(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/systemAssignedIdentitiesGetByScopeSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/systemAssignedIdentitiesGetByScopeSample.ts new file mode 100644 index 000000000000..26e116e9516b --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/systemAssignedIdentitiesGetByScopeSample.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the systemAssignedIdentity available under the specified RP scope. + * + * @summary Gets the systemAssignedIdentity available under the specified RP scope. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/SystemAssignedIdentityGet.json + */ +async function msiOperationsList() { + const subscriptionId = + process.env["MSI_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const scope = "scope"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.systemAssignedIdentities.getByScope(scope); + console.log(result); +} + +async function main() { + msiOperationsList(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesCreateOrUpdateSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..ff4caa619720 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesCreateOrUpdateSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { Identity, ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update an identity in the specified subscription and resource group. + * + * @summary Create or update an identity in the specified subscription and resource group. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityCreate.json + */ +async function identityCreate() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const parameters: Identity = { + location: "eastus", + tags: { key1: "value1", key2: "value2" } + }; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.createOrUpdate( + resourceGroupName, + resourceName, + parameters + ); + console.log(result); +} + +async function main() { + identityCreate(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesDeleteSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesDeleteSample.ts new file mode 100644 index 000000000000..a6eb03b7cdfc --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesDeleteSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the identity. + * + * @summary Deletes the identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityDelete.json + */ +async function identityDelete() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.delete( + resourceGroupName, + resourceName + ); + console.log(result); +} + +async function main() { + identityDelete(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesGetSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesGetSample.ts new file mode 100644 index 000000000000..d80a5767c39d --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the identity. + * + * @summary Gets the identity. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityGet.json + */ +async function identityGet() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.get( + resourceGroupName, + resourceName + ); + console.log(result); +} + +async function main() { + identityGet(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListByResourceGroupSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListByResourceGroupSample.ts new file mode 100644 index 000000000000..51ce0e2cbd82 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListByResourceGroupSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all the userAssignedIdentities available under the specified ResourceGroup. + * + * @summary Lists all the userAssignedIdentities available under the specified ResourceGroup. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListByResourceGroup.json + */ +async function identityListByResourceGroup() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.userAssignedIdentities.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + identityListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListBySubscriptionSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListBySubscriptionSample.ts new file mode 100644 index 000000000000..cef25fcd2f14 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesListBySubscriptionSample.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all the userAssignedIdentities available under the specified subscription. + * + * @summary Lists all the userAssignedIdentities available under the specified subscription. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListBySubscription.json + */ +async function identityListBySubscription() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.userAssignedIdentities.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + identityListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesUpdateSample.ts b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesUpdateSample.ts new file mode 100644 index 000000000000..bf2747718b8d --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/src/userAssignedIdentitiesUpdateSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { IdentityUpdate, ManagedServiceIdentityClient } from "@azure/arm-msi"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update an identity in the specified subscription and resource group. + * + * @summary Update an identity in the specified subscription and resource group. + * x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityUpdate.json + */ +async function identityUpdate() { + const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName"; + const resourceName = "resourceName"; + const parameters: IdentityUpdate = { + location: "eastus", + tags: { key1: "value1", key2: "value2" } + }; + const credential = new DefaultAzureCredential(); + const client = new ManagedServiceIdentityClient(credential, subscriptionId); + const result = await client.userAssignedIdentities.update( + resourceGroupName, + resourceName, + parameters + ); + console.log(result); +} + +async function main() { + identityUpdate(); +} + +main().catch(console.error); diff --git a/sdk/msi/arm-msi/samples/v2/typescript/tsconfig.json b/sdk/msi/arm-msi/samples/v2/typescript/tsconfig.json new file mode 100644 index 000000000000..e26ce2a6d8f7 --- /dev/null +++ b/sdk/msi/arm-msi/samples/v2/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts b/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts index e513e8444446..4e8956b9e9dd 100644 --- a/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts +++ b/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts @@ -60,7 +60,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-msi/2.1.0-beta.3`; + const packageDetails = `azsdk-js-arm-msi/2.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -113,7 +113,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-01-31-preview"; + this.apiVersion = options.apiVersion || "2023-01-31"; this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this); this.operations = new OperationsImpl(this); this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this); diff --git a/sdk/msi/arm-msi/src/models/index.ts b/sdk/msi/arm-msi/src/models/index.ts index c92f2243c3e3..7a417e18b357 100644 --- a/sdk/msi/arm-msi/src/models/index.ts +++ b/sdk/msi/arm-msi/src/models/index.ts @@ -11,7 +11,7 @@ import * as coreClient from "@azure/core-client"; /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -25,6 +25,27 @@ export interface Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** An error response from the ManagedServiceIdentity service. */ @@ -81,59 +102,6 @@ export interface UserAssignedIdentitiesListResult { nextLink?: string; } -/** Azure resources returned by the resource action to get a list of assigned resources. */ -export interface AssociatedResourcesListResult { - /** - * Total number of Azure resources assigned to the identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalCount?: number; - /** - * The collection of Azure resources returned by the resource action to get a list of assigned resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AzureResource[]; - /** - * The url to get the next page of results, if any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Describes an Azure resource that is attached to an identity. */ -export interface AzureResource { - /** - * The ID of this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The name of the resource group this resource belongs to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGroup?: string; - /** - * The ID of the subscription this resource belongs to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subscriptionId?: string; - /** - * The name of the subscription this resource belongs to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subscriptionDisplayName?: string; -} - /** Values returned by the List operation for federated identity credentials. */ export interface FederatedIdentityCredentialsListResult { /** The collection of federated identity credentials returned by the listing operation. */ @@ -233,6 +201,30 @@ export interface Identity extends TrackedResource { readonly clientId?: string; } +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + /** Optional parameters. */ export interface SystemAssignedIdentitiesGetByScopeOptionalParams extends coreClient.OperationOptions {} @@ -268,24 +260,6 @@ export interface UserAssignedIdentitiesListByResourceGroupOptionalParams /** Contains response data for the listByResourceGroup operation. */ export type UserAssignedIdentitiesListByResourceGroupResponse = UserAssignedIdentitiesListResult; -/** Optional parameters. */ -export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams - extends coreClient.OperationOptions { - /** OData filter expression to apply to the query. */ - filter?: string; - /** OData orderBy expression to apply to the query. */ - orderby?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skiptoken?: string; -} - -/** Contains response data for the listAssociatedResources operation. */ -export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult; - /** Optional parameters. */ export interface UserAssignedIdentitiesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} @@ -325,13 +299,6 @@ export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type UserAssignedIdentitiesListByResourceGroupNextResponse = UserAssignedIdentitiesListResult; -/** Optional parameters. */ -export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAssociatedResourcesNext operation. */ -export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult; - /** Optional parameters. */ export interface FederatedIdentityCredentialsListOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/msi/arm-msi/src/models/mappers.ts b/sdk/msi/arm-msi/src/models/mappers.ts index b1eb7f2a4d5a..caa3d91968f1 100644 --- a/sdk/msi/arm-msi/src/models/mappers.ts +++ b/sdk/msi/arm-msi/src/models/mappers.ts @@ -33,6 +33,58 @@ export const Resource: coreClient.CompositeMapper = { type: { name: "String" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } @@ -202,93 +254,6 @@ export const UserAssignedIdentitiesListResult: coreClient.CompositeMapper = { } }; -export const AssociatedResourcesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssociatedResourcesListResult", - modelProperties: { - totalCount: { - serializedName: "totalCount", - readOnly: true, - type: { - name: "Number" - } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AzureResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - resourceGroup: { - serializedName: "resourceGroup", - readOnly: true, - type: { - name: "String" - } - }, - subscriptionId: { - serializedName: "subscriptionId", - readOnly: true, - type: { - name: "String" - } - }, - subscriptionDisplayName: { - serializedName: "subscriptionDisplayName", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const FederatedIdentityCredentialsListResult: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/msi/arm-msi/src/models/parameters.ts b/sdk/msi/arm-msi/src/models/parameters.ts index e9aba8ecd9c9..f5d51b5879ae 100644 --- a/sdk/msi/arm-msi/src/models/parameters.ts +++ b/sdk/msi/arm-msi/src/models/parameters.ts @@ -56,7 +56,7 @@ export const scope: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-01-31-preview", + defaultValue: "2023-01-31", isConstant: true, serializedName: "api-version", type: { @@ -99,57 +99,61 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const resourceName: OperationURLParameter = { - parameterPath: "resourceName", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "resourceName", - required: true, + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: IdentityMapper }; -export const orderby: OperationQueryParameter = { - parameterPath: ["options", "orderby"], +export const resourceName: OperationURLParameter = { + parameterPath: "resourceName", mapper: { - serializedName: "$orderby", + serializedName: "resourceName", + required: true, type: { name: "String" } } }; -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: IdentityUpdateMapper +}; + +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { constraints: { - InclusiveMinimum: 1 + MaxLength: 90, + MinLength: 1 }, - serializedName: "$top", + serializedName: "resourceGroupName", + required: true, type: { - name: "Number" + name: "String" } } }; -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { constraints: { InclusiveMinimum: 1 }, - serializedName: "$skip", + serializedName: "$top", type: { name: "Number" } @@ -166,28 +170,6 @@ export const skiptoken: OperationQueryParameter = { } }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: IdentityMapper -}; - -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: IdentityUpdateMapper -}; - export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: FederatedIdentityCredentialMapper @@ -196,6 +178,9 @@ export const parameters2: OperationParameter = { export const federatedIdentityCredentialResourceName: OperationURLParameter = { parameterPath: "federatedIdentityCredentialResourceName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{2,119}$") + }, serializedName: "federatedIdentityCredentialResourceName", required: true, type: { diff --git a/sdk/msi/arm-msi/src/operations/federatedIdentityCredentials.ts b/sdk/msi/arm-msi/src/operations/federatedIdentityCredentials.ts index 84f783a46d07..7256b31b58fe 100644 --- a/sdk/msi/arm-msi/src/operations/federatedIdentityCredentials.ts +++ b/sdk/msi/arm-msi/src/operations/federatedIdentityCredentials.ts @@ -42,7 +42,7 @@ export class FederatedIdentityCredentialsImpl /** * Lists all the federated identity credentials under the specified user assigned identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param options The options parameters. */ @@ -118,7 +118,7 @@ export class FederatedIdentityCredentialsImpl /** * Lists all the federated identity credentials under the specified user assigned identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param options The options parameters. */ @@ -135,7 +135,7 @@ export class FederatedIdentityCredentialsImpl /** * Create or update a federated identity credential under the specified user assigned identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param federatedIdentityCredentialResourceName The name of the federated identity credential * resource. @@ -163,7 +163,7 @@ export class FederatedIdentityCredentialsImpl /** * Gets the federated identity credential. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param federatedIdentityCredentialResourceName The name of the federated identity credential * resource. @@ -188,7 +188,7 @@ export class FederatedIdentityCredentialsImpl /** * Deletes the federated identity credential. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param federatedIdentityCredentialResourceName The name of the federated identity credential * resource. @@ -213,7 +213,7 @@ export class FederatedIdentityCredentialsImpl /** * ListNext - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. @@ -253,8 +253,8 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -279,8 +279,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.resourceName, + Parameters.resourceGroupName1, Parameters.federatedIdentityCredentialResourceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -303,8 +303,8 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.resourceName, + Parameters.resourceGroupName1, Parameters.federatedIdentityCredentialResourceName ], headerParameters: [Parameters.accept], @@ -325,8 +325,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.resourceName, + Parameters.resourceGroupName1, Parameters.federatedIdentityCredentialResourceName ], headerParameters: [Parameters.accept], @@ -347,8 +347,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/msi/arm-msi/src/operations/userAssignedIdentities.ts b/sdk/msi/arm-msi/src/operations/userAssignedIdentities.ts index 119940205043..cd19c87cf4d0 100644 --- a/sdk/msi/arm-msi/src/operations/userAssignedIdentities.ts +++ b/sdk/msi/arm-msi/src/operations/userAssignedIdentities.ts @@ -21,10 +21,6 @@ import { UserAssignedIdentitiesListByResourceGroupNextOptionalParams, UserAssignedIdentitiesListByResourceGroupOptionalParams, UserAssignedIdentitiesListByResourceGroupResponse, - AzureResource, - UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams, - UserAssignedIdentitiesListAssociatedResourcesOptionalParams, - UserAssignedIdentitiesListAssociatedResourcesResponse, UserAssignedIdentitiesCreateOrUpdateOptionalParams, UserAssignedIdentitiesCreateOrUpdateResponse, IdentityUpdate, @@ -34,8 +30,7 @@ import { UserAssignedIdentitiesGetResponse, UserAssignedIdentitiesDeleteOptionalParams, UserAssignedIdentitiesListBySubscriptionNextResponse, - UserAssignedIdentitiesListByResourceGroupNextResponse, - UserAssignedIdentitiesListAssociatedResourcesNextResponse + UserAssignedIdentitiesListByResourceGroupNextResponse } from "../models"; /// @@ -174,90 +169,6 @@ export class UserAssignedIdentitiesImpl implements UserAssignedIdentities { } } - /** - * Lists the associated resources for this identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. - * @param resourceName The name of the identity resource. - * @param options The options parameters. - */ - public listAssociatedResources( - resourceGroupName: string, - resourceName: string, - options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listAssociatedResourcesPagingAll( - resourceGroupName, - resourceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listAssociatedResourcesPagingPage( - resourceGroupName, - resourceName, - options, - settings - ); - } - }; - } - - private async *listAssociatedResourcesPagingPage( - resourceGroupName: string, - resourceName: string, - options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: UserAssignedIdentitiesListAssociatedResourcesResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listAssociatedResources( - resourceGroupName, - resourceName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listAssociatedResourcesNext( - resourceGroupName, - resourceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listAssociatedResourcesPagingAll( - resourceGroupName: string, - resourceName: string, - options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listAssociatedResourcesPagingPage( - resourceGroupName, - resourceName, - options - )) { - yield* page; - } - } - /** * Lists all the userAssignedIdentities available under the specified subscription. * @param options The options parameters. @@ -286,23 +197,6 @@ export class UserAssignedIdentitiesImpl implements UserAssignedIdentities { ); } - /** - * Lists the associated resources for this identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. - * @param resourceName The name of the identity resource. - * @param options The options parameters. - */ - private _listAssociatedResources( - resourceGroupName: string, - resourceName: string, - options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - listAssociatedResourcesOperationSpec - ); - } - /** * Create or update an identity in the specified subscription and resource group. * @param resourceGroupName The name of the Resource Group to which the identity belongs. @@ -406,26 +300,6 @@ export class UserAssignedIdentitiesImpl implements UserAssignedIdentities { listByResourceGroupNextOperationSpec ); } - - /** - * ListAssociatedResourcesNext - * @param resourceGroupName The name of the Resource Group to which the identity belongs. - * @param resourceName The name of the identity resource. - * @param nextLink The nextLink from the previous successful call to the ListAssociatedResources - * method. - * @param options The options parameters. - */ - private _listAssociatedResourcesNext( - resourceGroupName: string, - resourceName: string, - nextLink: string, - options?: UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, nextLink, options }, - listAssociatedResourcesNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -468,35 +342,6 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/listAssociatedResources", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AssociatedResourcesListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.orderby, - Parameters.top, - Parameters.skip, - Parameters.skiptoken - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}", @@ -630,24 +475,3 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AssociatedResourcesListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/msi/arm-msi/src/operationsInterfaces/federatedIdentityCredentials.ts b/sdk/msi/arm-msi/src/operationsInterfaces/federatedIdentityCredentials.ts index f93239c5eef7..eb48823d344c 100644 --- a/sdk/msi/arm-msi/src/operationsInterfaces/federatedIdentityCredentials.ts +++ b/sdk/msi/arm-msi/src/operationsInterfaces/federatedIdentityCredentials.ts @@ -22,7 +22,7 @@ import { export interface FederatedIdentityCredentials { /** * Lists all the federated identity credentials under the specified user assigned identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param options The options parameters. */ @@ -33,7 +33,7 @@ export interface FederatedIdentityCredentials { ): PagedAsyncIterableIterator; /** * Create or update a federated identity credential under the specified user assigned identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param federatedIdentityCredentialResourceName The name of the federated identity credential * resource. @@ -49,7 +49,7 @@ export interface FederatedIdentityCredentials { ): Promise; /** * Gets the federated identity credential. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param federatedIdentityCredentialResourceName The name of the federated identity credential * resource. @@ -63,7 +63,7 @@ export interface FederatedIdentityCredentials { ): Promise; /** * Deletes the federated identity credential. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the identity resource. * @param federatedIdentityCredentialResourceName The name of the federated identity credential * resource. diff --git a/sdk/msi/arm-msi/src/operationsInterfaces/userAssignedIdentities.ts b/sdk/msi/arm-msi/src/operationsInterfaces/userAssignedIdentities.ts index 231f3dfa3330..c29c170025bf 100644 --- a/sdk/msi/arm-msi/src/operationsInterfaces/userAssignedIdentities.ts +++ b/sdk/msi/arm-msi/src/operationsInterfaces/userAssignedIdentities.ts @@ -11,8 +11,6 @@ import { Identity, UserAssignedIdentitiesListBySubscriptionOptionalParams, UserAssignedIdentitiesListByResourceGroupOptionalParams, - AzureResource, - UserAssignedIdentitiesListAssociatedResourcesOptionalParams, UserAssignedIdentitiesCreateOrUpdateOptionalParams, UserAssignedIdentitiesCreateOrUpdateResponse, IdentityUpdate, @@ -42,17 +40,6 @@ export interface UserAssignedIdentities { resourceGroupName: string, options?: UserAssignedIdentitiesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * Lists the associated resources for this identity. - * @param resourceGroupName The name of the Resource Group to which the identity belongs. - * @param resourceName The name of the identity resource. - * @param options The options parameters. - */ - listAssociatedResources( - resourceGroupName: string, - resourceName: string, - options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams - ): PagedAsyncIterableIterator; /** * Create or update an identity in the specified subscription and resource group. * @param resourceGroupName The name of the Resource Group to which the identity belongs.