diff --git a/src/automation/HISTORY.rst b/src/automation/HISTORY.rst index 8f2740cc9ff..6c6b3f012f9 100644 --- a/src/automation/HISTORY.rst +++ b/src/automation/HISTORY.rst @@ -3,15 +3,22 @@ Release History =============== -0.1.0 +0.1.4 ++++++ -* Initial release. +* Added handling for success responses on create resources. + +0.1.3 +++++++ +* Added Hybrid Runbook worker move command. 0.1.2 ++++++ * Added Hybrid Runbook Worker Group and Hybrid Runbook Workers related commands. -0.1.3 +0.1.0 ++++++ -* Added Hybrid Runbook worker move command. +* Initial release. + + + diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py index be2a5ad0f6a..f50200f8d8c 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py @@ -86,7 +86,7 @@ class HybridRunbookWorkerGroupCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [201]: + if session.http_response.status_code in [200, 201]: return self.on_201(session) return self.on_error(session.http_response) diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py index e204905e607..a85390a136f 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py @@ -86,7 +86,7 @@ class HybridRunbookWorkersCreate(AAZHttpOperation): def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [200]: + if session.http_response.status_code in [200, 201]: return self.on_200(session) return self.on_error(session.http_response) diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml index d2c48358911..386f5448826 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml @@ -11,7 +11,8 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-11-01 response: @@ -453,7 +454,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:32 GMT + - Thu, 25 Aug 2022 08:00:07 GMT expires: - '-1' pragma: @@ -486,12 +487,13 @@ interactions: ParameterSetName: - --resource-group --name --location User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2015-10-31 response: body: - string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://c74dad8b-eee8-4565-889f-abff737b6acc.agentsvc.wus2.azure-automation.net/accounts/c74dad8b-eee8-4565-889f-abff737b6acc","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-23T09:32:40.5766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-23T09:32:40.5766667+00:00"}}' + string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://fd908d5d-3741-449e-895f-7e7f48b5c3fa.agentsvc.wus2.azure-automation.net/accounts/fd908d5d-3741-449e-895f-7e7f48b5c3fa","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-25T08:00:17.2766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-25T08:00:17.2766667+00:00"}}' headers: cache-control: - no-cache @@ -500,21 +502,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:42 GMT + - Thu, 25 Aug 2022 08:00:18 GMT expires: - '-1' location: - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2015-10-31 + ocp-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci?api-version=2015-10-31 pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci?api-version=2015-10-31 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' + x-powered-by: + - ASP.NET status: code: 201 message: Created @@ -532,12 +542,13 @@ interactions: ParameterSetName: - --resource-group --name --tags User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2015-10-31 response: body: - string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://c74dad8b-eee8-4565-889f-abff737b6acc.agentsvc.wus2.azure-automation.net/accounts/c74dad8b-eee8-4565-889f-abff737b6acc","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-23T09:32:40.5766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-23T09:32:40.5766667+00:00"}}' + string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://fd908d5d-3741-449e-895f-7e7f48b5c3fa.agentsvc.wus2.azure-automation.net/accounts/fd908d5d-3741-449e-895f-7e7f48b5c3fa","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-25T08:00:17.2766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-25T08:00:17.2766667+00:00"}}' headers: cache-control: - no-cache @@ -546,23 +557,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:45 GMT + - Thu, 25 Aug 2022 08:00:20 GMT expires: - '-1' ocp-automation-accountid: - - c74dad8b-eee8-4565-889f-abff737b6acc + - fd908d5d-3741-449e-895f-7e7f48b5c3fa pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -585,37 +600,42 @@ interactions: ParameterSetName: - --resource-group --name --tags User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2015-10-31 response: body: - string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://c74dad8b-eee8-4565-889f-abff737b6acc.agentsvc.wus2.azure-automation.net/accounts/c74dad8b-eee8-4565-889f-abff737b6acc","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-23T09:32:40.5766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-23T09:32:48.01+00:00"}}' + string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://fd908d5d-3741-449e-895f-7e7f48b5c3fa.agentsvc.wus2.azure-automation.net/accounts/fd908d5d-3741-449e-895f-7e7f48b5c3fa","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-25T08:00:17.2766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-25T08:00:22.7866667+00:00"}}' headers: cache-control: - no-cache content-length: - - '770' + - '775' content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:51 GMT + - Thu, 25 Aug 2022 08:00:26 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -633,37 +653,42 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2015-10-31 response: body: - string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://c74dad8b-eee8-4565-889f-abff737b6acc.agentsvc.wus2.azure-automation.net/accounts/c74dad8b-eee8-4565-889f-abff737b6acc","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-23T09:32:40.5766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-23T09:32:48.01+00:00"}}' + string: '{"name":"test-account-000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://fd908d5d-3741-449e-895f-7e7f48b5c3fa.agentsvc.wus2.azure-automation.net/accounts/fd908d5d-3741-449e-895f-7e7f48b5c3fa","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-25T08:00:17.2766667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-25T08:00:22.7866667+00:00"}}' headers: cache-control: - no-cache content-length: - - '770' + - '775' content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:53 GMT + - Thu, 25 Aug 2022 08:00:28 GMT expires: - '-1' ocp-automation-accountid: - - c74dad8b-eee8-4565-889f-abff737b6acc + - fd908d5d-3741-449e-895f-7e7f48b5c3fa pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -681,35 +706,40 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts?api-version=2015-10-31 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-08-23T09:32:40.5766667+00:00","lastModifiedTime":"2022-08-23T09:32:48.01+00:00","state":"Ok"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-08-25T08:00:17.2766667+00:00","lastModifiedTime":"2022-08-25T08:00:22.7866667+00:00","state":"Ok"}}]}' headers: cache-control: - no-cache content-length: - - '429' + - '434' content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:53 GMT + - Thu, 25 Aug 2022 08:00:30 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -727,12 +757,13 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name --type User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-08-23T09:32:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-08-25T07:59:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -741,7 +772,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:54 GMT + - Thu, 25 Aug 2022 08:00:29 GMT expires: - '-1' pragma: @@ -774,12 +805,13 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name --type User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"637968439787000000\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-08-23T09:32:58.7+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-23T09:32:58.7+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"637970112386000000\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-08-25T08:00:38.6+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-25T08:00:38.6+00:00"}}' headers: cache-control: - no-cache @@ -788,23 +820,31 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:32:58 GMT + - Thu, 25 Aug 2022 08:00:38 GMT etag: - - '"637968439787000000"' + - '"637970112386000000"' expires: - '-1' location: - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 + ocp-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/runbooks/test-runbook-67vl5xncdks?api-version=2018-06-30 pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/runbooks/test-runbook-67vl5xncdks?api-version=2018-06-30 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' + x-powered-by: + - ASP.NET status: code: 201 message: Created @@ -828,12 +868,13 @@ interactions: - --resource-group --automation-account-name --name --log-activity-trace --log-verbose --log-progress User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"637968439819066667\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-08-23T09:32:58.7+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-08-23T09:33:01.9066667+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"637970112406066667\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-08-25T08:00:38.6+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-08-25T08:00:40.6066667+00:00"}}' headers: cache-control: - no-cache @@ -842,25 +883,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:01 GMT + - Thu, 25 Aug 2022 08:00:39 GMT etag: - - '"637968439819066667"' + - '"637970112406066667"' expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -882,7 +927,8 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name --content User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/draft/content?api-version=2018-06-30 response: @@ -894,24 +940,32 @@ interactions: content-length: - '0' date: - - Tue, 23 Aug 2022 09:33:02 GMT + - Thu, 25 Aug 2022 08:00:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/06a910fb-3b0f-48ce-b9a6-28d34cf60429?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/036848c6-98dc-4026-97cb-82aaeb318ee7?api-version=2018-06-30 ocp-automation-operationresultid: - - 06a910fb-3b0f-48ce-b9a6-28d34cf60429 - - 06a910fb-3b0f-48ce-b9a6-28d34cf60429 + - 036848c6-98dc-4026-97cb-82aaeb318ee7 + - 036848c6-98dc-4026-97cb-82aaeb318ee7 + ocp-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/runbooks/test-runbook-67vl5xncdks/operationResults/036848c6-98dc-4026-97cb-82aaeb318ee7?api-version=2018-06-30 pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/runbooks/test-runbook-67vl5xncdks/operationResults/036848c6-98dc-4026-97cb-82aaeb318ee7?api-version=2018-06-30 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' + x-powered-by: + - ASP.NET status: code: 202 message: Accepted @@ -929,9 +983,10 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name --content User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/06a910fb-3b0f-48ce-b9a6-28d34cf60429?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/036848c6-98dc-4026-97cb-82aaeb318ee7?api-version=2018-06-30 response: body: string: '' @@ -943,17 +998,21 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:10 GMT + - Thu, 25 Aug 2022 08:00:50 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -973,7 +1032,8 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/publish?api-version=2018-06-30 response: @@ -985,24 +1045,32 @@ interactions: content-length: - '0' date: - - Tue, 23 Aug 2022 09:33:12 GMT + - Thu, 25 Aug 2022 08:00:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/bf0013ce-7c25-4828-acae-5dd35ab4c88e?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/4bb89dcc-711c-41be-a9bc-13690c062855?api-version=2018-06-30 ocp-automation-operationresultid: - - bf0013ce-7c25-4828-acae-5dd35ab4c88e - - bf0013ce-7c25-4828-acae-5dd35ab4c88e + - 4bb89dcc-711c-41be-a9bc-13690c062855 + - 4bb89dcc-711c-41be-a9bc-13690c062855 + ocp-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/runbooks/test-runbook-67vl5xncdks/operationResults/4bb89dcc-711c-41be-a9bc-13690c062855?api-version=2018-06-30 pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/runbooks/test-runbook-67vl5xncdks/operationResults/4bb89dcc-711c-41be-a9bc-13690c062855?api-version=2018-06-30 x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-powered-by: + - ASP.NET status: code: 202 message: Accepted @@ -1020,9 +1088,10 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/bf0013ce-7c25-4828-acae-5dd35ab4c88e?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/4bb89dcc-711c-41be-a9bc-13690c062855?api-version=2018-06-30 response: body: string: '' @@ -1034,17 +1103,21 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:18 GMT + - Thu, 25 Aug 2022 08:00:58 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1066,12 +1139,12 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-23T09:33:20.8330338+00:00","lastModifiedAt":"2022-08-23T09:33:20.8330338+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-25T08:00:59.5132162+00:00","lastModifiedAt":"2022-08-25T08:00:59.5132162+00:00"}}' headers: cache-control: - no-cache @@ -1080,24 +1153,88 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:20 GMT + - Thu, 25 Aug 2022 08:00:59 GMT expires: - '-1' location: - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 + ocp-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/hybridRunbookWorkerGroups/hwg-yxy4sg?api-version=2022-02-22 pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/hybridRunbookWorkerGroups/hwg-yxy4sg?api-version=2022-02-22 x-ms-ratelimit-remaining-subscription-writes: - '1197' + x-powered-by: + - ASP.NET status: code: 201 message: Created +- request: + body: '{"name": "hwg-000004"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation hrwg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.39.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-25T08:00:59.5132162+00:00","lastModifiedAt":"2022-08-25T08:01:01.1538683+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '509' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 08:01:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: @@ -1112,12 +1249,12 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-23T09:33:20.8330338+00:00","lastModifiedAt":"2022-08-23T09:33:20.8330338+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-25T08:00:59.5132162+00:00","lastModifiedAt":"2022-08-25T08:01:01.1538683+00:00"}}' headers: cache-control: - no-cache @@ -1126,21 +1263,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:21 GMT + - Thu, 25 Aug 2022 08:01:02 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1158,12 +1299,12 @@ interactions: ParameterSetName: - --resource-group --automation-account-name User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups?api-version=2022-02-22 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-23T09:33:20.8330338+00:00","lastModifiedAt":"2022-08-23T09:33:20.8330338+00:00"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-25T08:00:59.5132162+00:00","lastModifiedAt":"2022-08-25T08:01:01.1538683+00:00"}}]}' headers: cache-control: - no-cache @@ -1172,21 +1313,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:23 GMT + - Thu, 25 Aug 2022 08:01:02 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1204,7 +1349,7 @@ interactions: ParameterSetName: - --automation-account-name --hybrid-runbook-worker-group-name -g User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004/hybridRunbookWorkers?api-version=2021-06-22 response: @@ -1218,21 +1363,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:25 GMT + - Thu, 25 Aug 2022 08:01:03 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1252,7 +1401,7 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name --yes User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 response: @@ -1264,19 +1413,23 @@ interactions: content-length: - '0' date: - - Tue, 23 Aug 2022 09:33:27 GMT + - Thu, 25 Aug 2022 08:01:04 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1298,12 +1451,13 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2017-05-15-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"b6355695-8031-4da6-968f-f3eef50fdb90","creationTime":"2022-08-23T09:33:28.49+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-08-23T09:33:28.49+00:00","lastStatusModifiedTime":"2022-08-23T09:33:28.49+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"d44d22c2-f22f-4b3a-9cd8-fae716f99290","creationTime":"2022-08-25T08:01:06.12+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-08-25T08:01:06.12+00:00","lastStatusModifiedTime":"2022-08-25T08:01:06.12+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache @@ -1312,21 +1466,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:28 GMT + - Thu, 25 Aug 2022 08:01:05 GMT expires: - '-1' location: - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2017-05-15-preview + ocp-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2017-05-15-preview pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-ms-location: + - https://management.azure.com/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a/resourceGroups/cli_test_automation_eklazgbqrgf7nsv6fd2kmudgisaicdk4murr2da7cw67sga7sldm4an/providers/Microsoft.Automation/automationAccounts/test-account-2ynzoj76zci/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2017-05-15-preview x-ms-ratelimit-remaining-subscription-resource-requests: - '1999' + x-powered-by: + - ASP.NET status: code: 201 message: Created @@ -1344,12 +1506,13 @@ interactions: ParameterSetName: - --resource-group --automation-account-name User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs?api-version=2017-05-15-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"b6355695-8031-4da6-968f-f3eef50fdb90","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-08-23T09:33:28.5105195+00:00","startTime":null,"lastModifiedTime":"2022-08-23T09:33:28.5105195+00:00","endTime":null,"runOn":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"d44d22c2-f22f-4b3a-9cd8-fae716f99290","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-08-25T08:01:06.1225581+00:00","startTime":null,"lastModifiedTime":"2022-08-25T08:01:06.1225581+00:00","endTime":null,"runOn":null}}]}' headers: cache-control: - no-cache @@ -1358,23 +1521,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:29 GMT + - Thu, 25 Aug 2022 08:01:06 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '599' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1392,12 +1559,13 @@ interactions: ParameterSetName: - --resource-group --automation-account-name --name User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2017-05-15-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"b6355695-8031-4da6-968f-f3eef50fdb90","creationTime":"2022-08-23T09:33:28.5105195+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-08-23T09:33:28.5105195+00:00","lastStatusModifiedTime":"2022-08-23T09:33:28.5105195+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"d44d22c2-f22f-4b3a-9cd8-fae716f99290","creationTime":"2022-08-25T08:01:06.1225581+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-08-25T08:01:06.1225581+00:00","lastStatusModifiedTime":"2022-08-25T08:01:06.1225581+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache @@ -1406,23 +1574,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 23 Aug 2022 09:33:30 GMT + - Thu, 25 Aug 2022 08:01:07 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '599' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -1442,7 +1614,8 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.39.0 azsdk-python-automationclient/unknown Python/3.10.5 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.39.0 (PIP) azsdk-python-automationclient/unknown Python/3.10.5 + (Windows-10-10.0.22000-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2015-10-31 response: @@ -1454,19 +1627,23 @@ interactions: content-length: - '0' date: - - Tue, 23 Aug 2022 09:33:42 GMT + - Thu, 25 Aug 2022 08:01:19 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0 + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-powered-by: + - ASP.NET status: code: 200 message: OK diff --git a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py index 71b49c794f8..e96e7e8520a 100644 --- a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py +++ b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py @@ -112,6 +112,9 @@ def test_automation(self, resource_group): self.cmd('automation hrwg create --resource-group {rg} --automation-account-name {account_name} --name {hybrid_runbook_worker_group_name}', checks=[self.check('name', '{hybrid_runbook_worker_group_name}')]) + self.cmd('automation hrwg create --resource-group {rg} --automation-account-name {account_name} --name {hybrid_runbook_worker_group_name}', + checks=[self.check('name', '{hybrid_runbook_worker_group_name}')]) + self.cmd('automation hrwg show --resource-group {rg} --automation-account-name {account_name} --name {hybrid_runbook_worker_group_name}', checks=[self.check('name', '{hybrid_runbook_worker_group_name}')]) diff --git a/src/automation/setup.py b/src/automation/setup.py index 23d198bfc4e..684e83a93c1 100644 --- a/src/automation/setup.py +++ b/src/automation/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '0.1.3' +VERSION = '0.1.4' try: from azext_automation.manual.version import VERSION except ImportError: