diff --git a/src/automanage/README.md b/src/automanage/README.md index c6ab5b3f969..c681ba0c7b0 100644 --- a/src/automanage/README.md +++ b/src/automanage/README.md @@ -4,13 +4,13 @@ This is an extension to Azure CLI to manage Automanage resources. ## How to use ## # configuration-profile Create a configuration-profile -`az automanage configuration-profile create -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}` +`az automanage configuration-profile create -n {profile_name} -g {rg} --configuration '{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}'` Show a configuration-profile `az automanage configuration-profile show -n {profile_name} -g {rg}` Update a configuration-profile -`az automanage configuration-profile update -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":true,"VMInsights/Enable":false}` +`az automanage configuration-profile update -n {profile_name} -g {rg} --configuration '{"Antimalware/Enable":true,"VMInsights/Enable":false}'` List configuration-profiles `az automanage configuration-profile list -g {rg}` diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py index 52c324fd9c4..a7250e26285 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a configuration profile :example: create configuration-profile - az automanage configuration-profile create -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true} + az automanage configuration-profile create -n {profile_name} -g {rg} --configuration '{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}' """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py index 7ebdacf3b46..b78975af55a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update a configuration profile :example: update configuration-profile - az automanage configuration-profile update -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":true,"VMInsights/Enable":false} + az automanage configuration-profile update -n {profile_name} -g {rg} --configuration '{"Antimalware/Enable":true,"VMInsights/Enable":false}' """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index dbc54b31313..26f6d3befd2 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a configuration profile version :example: create configuration-profile version - az automanage configuration-profile version create --profile-name {profile_name} -g {rg} -n {version_name} --configuration {"Antimalware/Enable":false} + az automanage configuration-profile version create --profile-name {profile_name} -g {rg} -n {version_name} --configuration '{"Antimalware/Enable":false}' """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index 4ff97a427e7..409db0bc7b3 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update a configuration profile version :example: update configuration-profile version - az automanage configuration-profile version update --profile-name {profile_name} -g {rg} -n {version_name} --configuration {"Antimalware/Enable":true} + az automanage configuration-profile version update --profile-name {profile_name} -g {rg} -n {version_name} --configuration '{"Antimalware/Enable":true}' """ _aaz_info = { diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index d441c68a128..7efaf7d3726 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-02-03T05:11:06Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:12:54 GMT + - Fri, 03 Feb 2023 05:11:11 GMT expires: - '-1' pragma: @@ -66,16 +66,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:13:00.58581+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:00.58581+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-02-03T05:11:17.2135192+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T05:11:17.2135192+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '597' + - '601' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:02 GMT + - Fri, 03 Feb 2023 05:11:18 GMT expires: - '-1' location: @@ -107,7 +107,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-02-03T05:11:06Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:04 GMT + - Fri, 03 Feb 2023 05:11:20 GMT expires: - '-1' pragma: @@ -215,13 +215,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:04 GMT + - Fri, 03 Feb 2023 05:11:21 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 20 Jan 2023 06:18:04 GMT + - Fri, 03 Feb 2023 05:16:21 GMT source-age: - - '0' + - '70' strict-transport-security: - max-age=31536000 vary: @@ -235,15 +235,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 471b6bf4dac1b48ea80290110be76219027cc936 + - 1ac3e0da37730def3be9cdacd135ab35f0703dc8 x-frame-options: - deny x-github-request-id: - - E30A:6795:9235:1F57B:63C75D91 + - A9FE:71BE:502C1:80EFC:63DC8C70 x-served-by: - - cache-qpg1254-QPG + - cache-qpg1277-QPG x-timer: - - S1674195184.483968,VS0,VE296 + - S1675401081.213165,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -261,16 +261,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301310\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301310\"\r\n \ }\r\n]" headers: cache-control: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:06 GMT + - Fri, 03 Feb 2023 05:11:22 GMT expires: - '-1' pragma: @@ -297,7 +297,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43986 status: code: 200 message: OK @@ -313,12 +313,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301100?api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301310?api-version=2022-11-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -332,8 +332,8 @@ interactions: \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": - []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n}" + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301310\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301310\"\r\n}" headers: cache-control: - no-cache @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:08 GMT + - Fri, 03 Feb 2023 05:11:24 GMT expires: - '-1' pragma: @@ -359,7 +359,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73988 status: code: 200 message: OK @@ -375,7 +375,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19045-SP0) @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:09 GMT + - Fri, 03 Feb 2023 05:11:25 GMT expires: - '-1' pragma: @@ -483,13 +483,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:10 GMT + - Fri, 03 Feb 2023 05:11:26 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 20 Jan 2023 06:18:10 GMT + - Fri, 03 Feb 2023 05:16:26 GMT source-age: - - '6' + - '75' strict-transport-security: - max-age=31536000 vary: @@ -503,15 +503,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - ef2b9e431068bdf0f4755df732065d6b94aa891b + - cb122644550aa39e158a2a88825c8033e6d7a2a5 x-frame-options: - deny x-github-request-id: - - E30A:6795:9235:1F57B:63C75D91 + - A9FE:71BE:502C1:80EFC:63DC8C70 x-served-by: - - cache-qpg1255-QPG + - cache-qpg1233-QPG x-timer: - - S1674195190.423284,VS0,VE2 + - S1675401087.661228,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -529,16 +529,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301310\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301310\"\r\n \ }\r\n]" headers: cache-control: @@ -548,7 +548,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:11 GMT + - Fri, 03 Feb 2023 05:11:28 GMT expires: - '-1' pragma: @@ -565,7 +565,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43998 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43985 status: code: 200 message: OK @@ -581,12 +581,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301100?api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301310?api-version=2022-11-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -600,8 +600,8 @@ interactions: \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": - []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n}" + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301310\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301310\"\r\n}" headers: cache-control: - no-cache @@ -610,7 +610,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:13 GMT + - Fri, 03 Feb 2023 05:11:30 GMT expires: - '-1' pragma: @@ -627,7 +627,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73998 + - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73987 status: code: 200 message: OK @@ -643,16 +643,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301310\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301310\"\r\n \ }\r\n]" headers: cache-control: @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:16 GMT + - Fri, 03 Feb 2023 05:11:34 GMT expires: - '-1' pragma: @@ -679,7 +679,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43984 status: code: 200 message: OK @@ -695,12 +695,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301100?api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301310?api-version=2022-11-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -714,8 +714,8 @@ interactions: \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": - []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n}" + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301310\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301310\"\r\n}" headers: cache-control: - no-cache @@ -724,7 +724,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:19 GMT + - Fri, 03 Feb 2023 05:11:35 GMT expires: - '-1' pragma: @@ -741,7 +741,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73986 status: code: 200 message: OK @@ -759,15 +759,16 @@ interactions: "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": "Inbound"}}]}}, {"apiVersion": "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vm000003PublicIP", "location": "eastus2euap", "tags": {}, "dependsOn": - [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", - "type": "Microsoft.Network/networkInterfaces", "name": "vm000003VMNic", "location": - "eastus2euap", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm000003VNET", - "Microsoft.Network/networkSecurityGroups/vm000003NSG", "Microsoft.Network/publicIpAddresses/vm000003PublicIP"], - "properties": {"ipConfigurations": [{"name": "ipconfigvm000003", "properties": - {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET/subnets/vm000003Subnet"}, + [], "properties": {"publicIPAllocationMethod": "Static"}, "sku": {"name": "Standard"}}, + {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces", + "name": "vm000003VMNic", "location": "eastus2euap", "tags": {}, "dependsOn": + ["Microsoft.Network/virtualNetworks/vm000003VNET", "Microsoft.Network/networkSecurityGroups/vm000003NSG", + "Microsoft.Network/publicIpAddresses/vm000003PublicIP"], "properties": {"ipConfigurations": + [{"name": "ipconfigvm000003", "properties": {"privateIPAllocationMethod": "Dynamic", + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET/subnets/vm000003Subnet"}, "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"}}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"}}}, - {"apiVersion": "2022-08-01", "type": "Microsoft.Compute/virtualMachines", "name": + {"apiVersion": "2022-11-01", "type": "Microsoft.Compute/virtualMachines", "name": "vm000003", "location": "eastus2euap", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm000003VMNic"], "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic", @@ -789,11 +790,11 @@ interactions: Connection: - keep-alive Content-Length: - - '3705' + - '3738' Content-Type: - application/json ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) @@ -801,10 +802,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","name":"vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13756716753965521186","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-01-20T06:13:25.9774639Z","duration":"PT0.0001934S","correlationId":"b706806e-93a5-4562-beda-e115f67f7d77","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_kDqcVmeHIxkL1hhZOR9hVED2UvacwMeD","name":"vm_deploy_kDqcVmeHIxkL1hhZOR9hVED2UvacwMeD","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12767453095468506063","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-02-03T05:11:45.6443514Z","duration":"PT0.0006273S","correlationId":"a535aa2b-ea3e-424b-bf47-d69a97e8144e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G/operationStatuses/08585274116833028449?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_kDqcVmeHIxkL1hhZOR9hVED2UvacwMeD/operationStatuses/08585262057846486291?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -812,7 +813,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:27 GMT + - Fri, 03 Feb 2023 05:11:47 GMT expires: - '-1' pragma: @@ -822,7 +823,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -838,12 +839,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274116833028449?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585262057846486291?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -855,7 +856,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:58 GMT + - Fri, 03 Feb 2023 05:12:17 GMT expires: - '-1' pragma: @@ -881,12 +882,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274116833028449?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585262057846486291?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -898,7 +899,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:14:28 GMT + - Fri, 03 Feb 2023 05:12:48 GMT expires: - '-1' pragma: @@ -924,12 +925,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274116833028449?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585262057846486291?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -941,7 +942,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:14:59 GMT + - Fri, 03 Feb 2023 05:13:18 GMT expires: - '-1' pragma: @@ -967,7 +968,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) @@ -975,7 +976,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","name":"vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13756716753965521186","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-01-20T06:14:33.9460794Z","duration":"PT1M7.9688089S","correlationId":"b706806e-93a5-4562-beda-e115f67f7d77","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_kDqcVmeHIxkL1hhZOR9hVED2UvacwMeD","name":"vm_deploy_kDqcVmeHIxkL1hhZOR9hVED2UvacwMeD","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12767453095468506063","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-02-03T05:13:13.6440161Z","duration":"PT1M28.000292S","correlationId":"a535aa2b-ea3e-424b-bf47-d69a97e8144e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache @@ -984,7 +985,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:14:59 GMT + - Fri, 03 Feb 2023 05:13:19 GMT expires: - '-1' pragma: @@ -1010,26 +1011,27 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-11-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"65755818-1c98-4462-9114-8024fc498ea6\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"d8bc9493-f9c6-4a19-8124-57bd1f548a65\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202301100\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_defe2fecf39d47c5912407ffc0c28c70\",\r\n + \"18.04.202301310\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_OsDisk_1_f7c9a26bd52346b59928a1ea4d0e0081\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_defe2fecf39d47c5912407ffc0c28c70\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_OsDisk_1_f7c9a26bd52346b59928a1ea4d0e0081\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -1049,28 +1051,28 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2023-01-20T06:14:33+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_defe2fecf39d47c5912407ffc0c28c70\",\r\n + \"2023-02-03T05:13:18+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_OsDisk_1_f7c9a26bd52346b59928a1ea4d0e0081\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2023-01-20T06:14:13.6362534+00:00\"\r\n + succeeded\",\r\n \"time\": \"2023-02-03T05:12:41.7645998+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2023-01-20T06:14:26.1524039+00:00\"\r\n + succeeded\",\r\n \"time\": \"2023-02-03T05:13:06.4523306+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2023-01-20T06:14:10.6361317+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2023-02-03T05:12:35.5926686+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3977' + - '4107' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:01 GMT + - Fri, 03 Feb 2023 05:13:23 GMT expires: - '-1' pragma: @@ -1087,7 +1089,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31992 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31988 status: code: 200 message: OK @@ -1103,7 +1105,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19045-SP0) @@ -1112,12 +1114,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"7e5fcc8b-f158-4299-895c-7d21fef087db\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"18a68029-cb95-43bb-8fa2-0d031b69464a\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"9c4fd676-29c4-4493-9a4f-823554781761\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"151ccade-cbf0-4bea-a592-9d077197912a\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"7e5fcc8b-f158-4299-895c-7d21fef087db\\\"\",\r\n + \ \"etag\": \"W/\\\"18a68029-cb95-43bb-8fa2-0d031b69464a\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -1126,8 +1128,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"5mf5erowfgkerl30e2stwfxczg.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-71-CD-6B\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"oev5jcsidu3efl3xhcfi4iypxa.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-A6-A3-F3\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -1143,9 +1145,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:05 GMT + - Fri, 03 Feb 2023 05:13:25 GMT etag: - - W/"7e5fcc8b-f158-4299-895c-7d21fef087db" + - W/"18a68029-cb95-43bb-8fa2-0d031b69464a" expires: - '-1' pragma: @@ -1162,10 +1164,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - fb1a664f-68c1-4c91-994a-bd4ad3dd1308 + - 1f1a1f6d-01bd-49c5-859f-5cc9a3bd3e6c status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -1178,7 +1180,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image --generate-ssh-keys + - -n -g --image --generate-ssh-keys --public-ip-sku User-Agent: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19045-SP0) @@ -1187,26 +1189,26 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"729725ca-d32a-477d-a101-6e35ada6e2fe\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"d5dc2eff-4207-4d2f-88a7-bd44b684f59d\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"3ce600df-6fe2-4ba4-8f3c-924b136f1d0e\",\r\n - \ \"ipAddress\": \"20.47.244.4\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n - \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + \"Succeeded\",\r\n \"resourceGuid\": \"9e67c380-f9a6-4b6e-80db-b7d8b994c96d\",\r\n + \ \"ipAddress\": \"20.221.146.130\",\r\n \"publicIPAddressVersion\": + \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n + \ \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '993' + - '998' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:05 GMT + - Fri, 03 Feb 2023 05:13:26 GMT etag: - - W/"729725ca-d32a-477d-a101-6e35ada6e2fe" + - W/"d5dc2eff-4207-4d2f-88a7-bd44b684f59d" expires: - '-1' pragma: @@ -1223,10 +1225,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1ceec6e8-cdb6-4e44-8b92-e53935f863f3 + - fca088c2-f02d-480e-b296-8df7280c6c16 status: code: 200 - message: OK + message: '' - request: body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' headers: @@ -1250,7 +1252,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:15:06.6110074+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:06.6110074+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-02-03T05:13:28.1021814+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T05:13:28.1021814+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1259,7 +1261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:08 GMT + - Fri, 03 Feb 2023 05:13:30 GMT expires: - '-1' location: @@ -1298,7 +1300,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:15:06.6110074+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:06.6110074+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-02-03T05:13:28.1021814+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T05:13:28.1021814+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1307,7 +1309,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:11 GMT + - Fri, 03 Feb 2023 05:13:32 GMT expires: - '-1' pragma: @@ -1346,16 +1348,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:15:06.6110074+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:06.6110074+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2023-02-03T05:13:32.820335+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-02-03T05:13:32.820335+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1012' + - '1055' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:12 GMT + - Fri, 03 Feb 2023 05:13:32 GMT expires: - '-1' pragma: @@ -1398,7 +1400,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-02-03T05:11:06Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1407,7 +1409,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:14 GMT + - Fri, 03 Feb 2023 05:13:33 GMT expires: - '-1' pragma: @@ -1445,7 +1447,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:15:22.9583536+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:22.9583536+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-02-03T05:13:49.5038789+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T05:13:49.5038789+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1454,7 +1456,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:25 GMT + - Fri, 03 Feb 2023 05:13:51 GMT expires: - '-1' location: @@ -1493,16 +1495,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T06:15:18.8774666+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:15:18.8774666+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Unknown"},"systemData":{"createdAt":"2023-02-03T05:13:35.2822388+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-02-03T05:13:35.2822388+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1045' + - '1042' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:27 GMT + - Fri, 03 Feb 2023 05:13:53 GMT expires: - '-1' pragma: @@ -1545,16 +1547,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T06:15:28.5571377+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:28.5571377+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Unknown"},"systemData":{"createdAt":"2023-02-03T05:13:54.5602843+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T05:13:54.5602843+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1007' + - '1004' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:28 GMT + - Fri, 03 Feb 2023 05:13:54 GMT expires: - '-1' pragma: @@ -1572,7 +1574,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1595,16 +1597,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","name":"6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:15:14.8254883Z","endTime":"2023-01-20T06:15:18.6210537Z","lastModifiedTime":"2023-01-20T06:15:18.6210534Z","duration":"PT3.7955654S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:15:19.1274721+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:15:19.1274721+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/1e559c92-4eaa-4c48-9590-940aaef7856d","name":"1e559c92-4eaa-4c48-9590-940aaef7856d","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-02-03T05:13:33.0274069Z","endTime":"2023-02-03T05:13:33.8991648Z","lastModifiedTime":"2023-02-03T05:13:33.8991646Z","duration":"PT0.8717579S","type":"Initial","status":"Unknown","configurationProfile":null,"resources":[],"error":{"code":"UnableToRetrieveRequiredResource","message":"Unable + to retrieve a resource. The appropriate permissions may not be completely + configured.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/automanage-rbac"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-02-03T05:13:35.5947369+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-02-03T05:13:35.5947369+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5ca7f0e6-9c94-4667-9bb9-eae2e18ccc2e","name":"5ca7f0e6-9c94-4667-9bb9-eae2e18ccc2e","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-02-03T05:13:58.3498976Z","endTime":"2023-02-03T05:13:58.9545879Z","lastModifiedTime":"2023-02-03T05:13:58.9545875Z","duration":"PT0.6046903S","type":"Consistency","status":"Unknown","configurationProfile":null,"resources":[],"error":{"code":"UnableToRetrieveRequiredResource","message":"Unable + to retrieve a resource. The appropriate permissions may not be completely + configured.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/automanage-rbac"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-02-03T05:14:00.1448077+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-02-03T05:14:00.1448077+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1188' + - '2735' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:41 GMT + - Fri, 03 Feb 2023 05:14:07 GMT expires: - '-1' pragma: @@ -1640,19 +1646,21 @@ interactions: User-Agent: - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6180b1db-26f2-46c6-a6d6-b3dd18f41d6f?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/1e559c92-4eaa-4c48-9590-940aaef7856d?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","name":"6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:15:14.8254883Z","endTime":"2023-01-20T06:15:18.6210537Z","lastModifiedTime":"2023-01-20T06:15:18.6210534Z","duration":"PT3.7955654S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:15:19.1274721+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:15:19.1274721+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/1e559c92-4eaa-4c48-9590-940aaef7856d","name":"1e559c92-4eaa-4c48-9590-940aaef7856d","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-02-03T05:13:33.0274069Z","endTime":"2023-02-03T05:13:33.8991648Z","lastModifiedTime":"2023-02-03T05:13:33.8991646Z","duration":"PT0.8717579S","type":"Initial","status":"Unknown","configurationProfile":null,"resources":[],"error":{"code":"UnableToRetrieveRequiredResource","message":"Unable + to retrieve a resource. The appropriate permissions may not be completely + configured.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/automanage-rbac"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-02-03T05:13:35.5947369+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-02-03T05:13:35.5947369+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1176' + - '1359' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:44 GMT + - Fri, 03 Feb 2023 05:14:08 GMT expires: - '-1' pragma: @@ -1700,7 +1708,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 06:15:45 GMT + - Fri, 03 Feb 2023 05:14:10 GMT expires: - '-1' pragma: @@ -1746,7 +1754,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:15:46 GMT + - Fri, 03 Feb 2023 05:14:12 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index d660d9cfefd..f8e1351f4c7 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-02-03T03:47:09Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:12:53 GMT + - Fri, 03 Feb 2023 03:47:15 GMT expires: - '-1' pragma: @@ -69,16 +69,620 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription + is not registered to use namespace ''Microsoft.Automanage''. See https://aka.ms/rps-not-found + for how to register subscriptions.","details":[{"code":"MissingSubscriptionRegistration","target":"Microsoft.Automanage","message":"The + subscription is not registered to use namespace ''Microsoft.Automanage''. + See https://aka.ms/rps-not-found for how to register subscriptions."}]}}' headers: cache-control: - no-cache content-length: - - '843' + - '451' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:12:59 GMT + - Fri, 03 Feb 2023 03:47:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 409 + message: Conflict +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python-requests/2.26.0 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/register?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:47:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:47:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:47:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:47:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:48:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:48:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registering"}' + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:48:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage?api-version=2016-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage","namespace":"Microsoft.Automanage","authorizations":[{"applicationId":"9ae330ab-d710-466b-851c-c828e7340846"},{"applicationId":"d828acde-4b48-47f5-a6e8-52460104a052","roleDefinitionId":"111e90e1-c9ec-40f6-b898-c0964578da58"}],"resourceTypes":[{"resourceType":"configurationProfileAssignments","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview","2020-06-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"configurationProfileAssignmentIntents","locations":["Central + US","East US","East US 2","South Central US","West US","West US 2","West Central + US","North Europe","West Europe","Canada Central","Japan East","UK South","Australia + Southeast","Australia East","Southeast Asia","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2021-03-30-preview"],"capabilities":"SupportsExtension"},{"resourceType":"accounts","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"configurationProfilePreferences","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2020-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove"},{"resourceType":"configurationProfiles","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"configurationProfiles/versions","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","West Europe","North Europe","Canada Central","Japan + East","UK South","Australia Southeast","Australia East","Southeast Asia","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"],"capabilities":"None"},{"resourceType":"bestPractices","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"bestPractices/versions","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2022-05-04","2021-04-30-preview"]},{"resourceType":"operations","locations":["Central + US","East US 2","East US","North Central US","South Central US","West US 2","West + Central US","West US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2022-06-01-preview","2022-05-04","2022-03-30-preview","2021-04-30-preview","2020-06-30-preview"]},{"resourceType":"servicePrincipals","locations":[],"apiVersions":["2022-05-04","2021-04-30-preview"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '3602' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:48:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + false, "Backup/Enable": false, "VMInsights/Enable": true, "AzureSecurityCenter/Enable": + true, "UpdateManagement/Enable": true, "ChangeTrackingAndInventory/Enable": + true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "BootDiagnostics/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '350' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-02-03T03:48:37.5613409+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:37.5613409+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '845' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 03 Feb 2023 03:48:39 GMT expires: - '-1' location: @@ -117,16 +721,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-02-03T03:48:37.5613409+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:37.5613409+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:01 GMT + - Fri, 03 Feb 2023 03:48:41 GMT expires: - '-1' pragma: @@ -165,16 +769,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-02-03T03:48:37.5613409+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:37.5613409+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '855' + - '857' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:04 GMT + - Fri, 03 Feb 2023 03:48:42 GMT expires: - '-1' pragma: @@ -213,16 +817,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-02-03T03:48:37.5613409+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:37.5613409+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:06 GMT + - Fri, 03 Feb 2023 03:48:44 GMT expires: - '-1' pragma: @@ -266,16 +870,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:07.0824346+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-02-03T03:48:37.5613409+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:46.5323376+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '626' + - '627' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:07 GMT + - Fri, 03 Feb 2023 03:48:46 GMT expires: - '-1' pragma: @@ -293,7 +897,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -317,7 +921,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-02-03T03:47:09Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -326,7 +930,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:07 GMT + - Fri, 03 Feb 2023 03:48:47 GMT expires: - '-1' pragma: @@ -364,16 +968,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-02-03T03:48:54.054399+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:54.054399+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '634' + - '632' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:15 GMT + - Fri, 03 Feb 2023 03:48:59 GMT expires: - '-1' location: @@ -412,16 +1016,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-02-03T03:48:54.054399+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:54.054399+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '634' + - '632' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:17 GMT + - Fri, 03 Feb 2023 03:49:01 GMT expires: - '-1' pragma: @@ -460,16 +1064,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-02-03T03:48:54.054399+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:54.054399+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '646' + - '644' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:18 GMT + - Fri, 03 Feb 2023 03:49:03 GMT expires: - '-1' pragma: @@ -508,16 +1112,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-02-03T03:48:54.054399+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:48:54.054399+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '634' + - '632' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:21 GMT + - Fri, 03 Feb 2023 03:49:05 GMT expires: - '-1' pragma: @@ -561,16 +1165,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:21.9365566+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-02-03T03:48:54.054399+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-02-03T03:49:06.9340496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '633' + - '632' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:22 GMT + - Fri, 03 Feb 2023 03:49:06 GMT expires: - '-1' pragma: @@ -620,7 +1224,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 06:13:29 GMT + - Fri, 03 Feb 2023 03:49:14 GMT expires: - '-1' pragma: @@ -666,7 +1270,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:31 GMT + - Fri, 03 Feb 2023 03:49:17 GMT expires: - '-1' pragma: @@ -714,7 +1318,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 06:13:42 GMT + - Fri, 03 Feb 2023 03:49:23 GMT expires: - '-1' pragma: @@ -760,7 +1364,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:43 GMT + - Fri, 03 Feb 2023 03:49:25 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index a2b81e44826..15ccb28f09a 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:52 GMT + - Fri, 03 Feb 2023 03:46:21 GMT expires: - '-1' pragma: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:53 GMT + - Fri, 03 Feb 2023 03:46:21 GMT expires: - '-1' pragma: @@ -121,7 +121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:54 GMT + - Fri, 03 Feb 2023 03:46:22 GMT expires: - '-1' pragma: @@ -169,7 +169,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:54 GMT + - Fri, 03 Feb 2023 03:46:22 GMT expires: - '-1' pragma: @@ -215,7 +215,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:55 GMT + - Fri, 03 Feb 2023 03:46:23 GMT expires: - '-1' pragma: @@ -252,16 +252,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default","name":"default","type":"Microsoft.Automanage/servicePrincipals","properties":{"authorizationSet":true,"servicePrincipalId":"9c649736-fc13-44c4-a4af-9947c6a203e4"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default","name":"default","type":"Microsoft.Automanage/servicePrincipals","properties":{"authorizationSet":false,"servicePrincipalId":"f76e2cfd-0948-4cd7-bc92-937a6fd5f280"}}' headers: cache-control: - no-cache content-length: - - '281' + - '282' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 06:13:57 GMT + - Fri, 03 Feb 2023 03:46:24 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index d25cdba845f..32c10a671b3 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -87,7 +87,8 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] self.kwargs.update({'profile_id': profile_id}) - vm_id = self.cmd('az vm create -n {vm_name} -g {rg} --image UbuntuLTS --generate-ssh-keys').get_output_in_json()["id"] + vm_id = self.cmd('az vm create -n {vm_name} -g {rg} --image UbuntuLTS --generate-ssh-keys ' + '--public-ip-sku Standard').get_output_in_json()["id"] self.cmd('az automanage configuration-profile-assignment vm create -n default -g {rg} ' '--vm-name {vm_name} --configuration-profile {profile_id}') self.cmd('az automanage configuration-profile-assignment vm show -n default -g {rg} --vm-name {vm_name}',