diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_at_scope.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_at_scope.yaml index 190eab36bc70..6f1f1f132e45 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_at_scope.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_at_scope.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 response: body: string: '' @@ -59,14 +59,14 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West US"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-05-19T16:54:35.6888862Z","duration":"PT2.2807558S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operationStatuses/08586116996120694820?api-version=2019-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operationStatuses/08586116996120694820?api-version=2019-10-01 cache-control: - no-cache content-length: @@ -100,7 +100,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operationStatuses/08586116996120694820?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operationStatuses/08586116996120694820?api-version=2019-10-01 response: body: string: '{"status":"Succeeded"}' @@ -138,11 +138,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:44.0625756Z","duration":"PT10.6544452S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:44.0625756Z","duration":"PT10.6544452S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' headers: cache-control: - no-cache @@ -177,11 +177,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/?api-version=2019-10-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:44.0625756Z","duration":"PT10.6544452S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:44.0625756Z","duration":"PT10.6544452S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}' headers: cache-control: - no-cache @@ -216,11 +216,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:44.0625756Z","duration":"PT10.6544452S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:44.0625756Z","duration":"PT10.6544452S","correlationId":"d462637c-9881-4b00-a1e2-3a5adb16f2d0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' headers: cache-control: - no-cache @@ -255,10 +255,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations?api-version=2019-10-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/2D0224D33E3D7A83","operationId":"2D0224D33E3D7A83","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:43.1401607Z","duration":"PT4.9381401S","trackingId":"45521b87-a499-489c-884e-b38a04d42fe7","serviceRequestId":"61a38ce3-ac23-4d45-a679-fb3ffccb10a5","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/08586116996120694820","operationId":"08586116996120694820","properties":{"provisioningOperation":"EvaluateDeploymentOutput","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:43.8548551Z","duration":"PT0.4354219S","trackingId":"8c11996c-cda5-41c4-9ef8-e4f8e19a6bf7","statusCode":"OK","statusMessage":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/2D0224D33E3D7A83","operationId":"2D0224D33E3D7A83","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:43.1401607Z","duration":"PT4.9381401S","trackingId":"45521b87-a499-489c-884e-b38a04d42fe7","serviceRequestId":"61a38ce3-ac23-4d45-a679-fb3ffccb10a5","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/08586116996120694820","operationId":"08586116996120694820","properties":{"provisioningOperation":"EvaluateDeploymentOutput","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:43.8548551Z","duration":"PT0.4354219S","trackingId":"8c11996c-cda5-41c4-9ef8-e4f8e19a6bf7","statusCode":"OK","statusMessage":null}}]}' headers: cache-control: - no-cache @@ -293,10 +293,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/2D0224D33E3D7A83?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/2D0224D33E3D7A83?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/2D0224D33E3D7A83","operationId":"2D0224D33E3D7A83","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:43.1401607Z","duration":"PT4.9381401S","trackingId":"45521b87-a499-489c-884e-b38a04d42fe7","serviceRequestId":"61a38ce3-ac23-4d45-a679-fb3ffccb10a5","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/operations/2D0224D33E3D7A83","operationId":"2D0224D33E3D7A83","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:54:43.1401607Z","duration":"PT4.9381401S","trackingId":"45521b87-a499-489c-884e-b38a04d42fe7","serviceRequestId":"61a38ce3-ac23-4d45-a679-fb3ffccb10a5","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}}' headers: cache-control: - no-cache @@ -333,7 +333,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/cancel?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/cancel?api-version=2019-10-01 response: body: string: '{"error":{"code":"DeploymentCannotBeCancelled","message":"The deployment @@ -386,11 +386,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/validate?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/validate?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:55:11.1607734Z","duration":"PT0S","correlationId":"d054809e-b03d-4727-88d3-632d0cc3cc5a","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a","name":"pytestdeployment9c41124a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:55:11.1607734Z","duration":"PT0S","correlationId":"d054809e-b03d-4727-88d3-632d0cc3cc5a","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' headers: cache-control: - no-cache @@ -431,7 +431,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/exportTemplate?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a/exportTemplate?api-version=2019-10-01 response: body: string: '{"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"location":{"allowedValues":["East @@ -477,7 +477,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_at_scope9c41124a/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment9c41124a?api-version=2019-10-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml index db5929bd2d45..3ae459d9c922 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 response: body: string: '' @@ -59,14 +59,14 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West US"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-05-19T16:57:33.2666188Z","duration":"PT2.3877731S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586116994345987616?api-version=2019-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586116994345987616?api-version=2019-10-01 cache-control: - no-cache content-length: @@ -100,7 +100,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586116994345987616?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586116994345987616?api-version=2019-10-01 response: body: string: '{"status":"Succeeded"}' @@ -138,11 +138,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0459366Z","duration":"PT10.1670909S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0459366Z","duration":"PT10.1670909S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' headers: cache-control: - no-cache @@ -177,11 +177,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/?api-version=2019-10-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0459366Z","duration":"PT10.1670909S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0459366Z","duration":"PT10.1670909S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}' headers: cache-control: - no-cache @@ -216,11 +216,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0459366Z","duration":"PT10.1670909S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0459366Z","duration":"PT10.1670909S","correlationId":"a71bdd7b-1b9a-4b57-a057-d9a68196f293","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' headers: cache-control: - no-cache @@ -265,7 +265,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/whatIf?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/whatIf?api-version=2019-10-01 response: body: string: '' @@ -344,10 +344,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/deployments/pytestdeployment667e10fe/operations?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/deployments/pytestdeployment667e10fe/operations?api-version=2019-10-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/7E6DFBDAC54EDE94","operationId":"7E6DFBDAC54EDE94","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:40.9277065Z","duration":"PT6.534596S","trackingId":"4dbf0a5e-c96e-4b7a-bfb2-54fe6e4e6b76","serviceRequestId":"8ef82d78-5568-4053-be6f-8b71976a46ca","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/08586116994345987616","operationId":"08586116994345987616","properties":{"provisioningOperation":"EvaluateDeploymentOutput","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0267463Z","duration":"PT0.0707754S","trackingId":"ae38f9fe-ec72-4f42-90b7-bbf5cd4ec491","statusCode":"OK","statusMessage":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/7E6DFBDAC54EDE94","operationId":"7E6DFBDAC54EDE94","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:40.9277065Z","duration":"PT6.534596S","trackingId":"4dbf0a5e-c96e-4b7a-bfb2-54fe6e4e6b76","serviceRequestId":"8ef82d78-5568-4053-be6f-8b71976a46ca","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/08586116994345987616","operationId":"08586116994345987616","properties":{"provisioningOperation":"EvaluateDeploymentOutput","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:41.0267463Z","duration":"PT0.0707754S","trackingId":"ae38f9fe-ec72-4f42-90b7-bbf5cd4ec491","statusCode":"OK","statusMessage":null}}]}' headers: cache-control: - no-cache @@ -382,10 +382,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/deployments/pytestdeployment667e10fe/operations/7E6DFBDAC54EDE94?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/deployments/pytestdeployment667e10fe/operations/7E6DFBDAC54EDE94?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/7E6DFBDAC54EDE94","operationId":"7E6DFBDAC54EDE94","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:40.9277065Z","duration":"PT6.534596S","trackingId":"4dbf0a5e-c96e-4b7a-bfb2-54fe6e4e6b76","serviceRequestId":"8ef82d78-5568-4053-be6f-8b71976a46ca","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/7E6DFBDAC54EDE94","operationId":"7E6DFBDAC54EDE94","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2020-05-19T16:57:40.9277065Z","duration":"PT6.534596S","trackingId":"4dbf0a5e-c96e-4b7a-bfb2-54fe6e4e6b76","serviceRequestId":"8ef82d78-5568-4053-be6f-8b71976a46ca","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}}' headers: cache-control: - no-cache @@ -422,7 +422,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/cancel?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/cancel?api-version=2019-10-01 response: body: string: '{"error":{"code":"DeploymentCannotBeCancelled","message":"The deployment @@ -475,11 +475,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/validate?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/validate?api-version=2019-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:59:06.3943743Z","duration":"PT0S","correlationId":"a62f998d-994e-4860-8301-da579080af46","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16604828588493152528","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-05-19T16:59:06.3943743Z","duration":"PT0S","correlationId":"a62f998d-994e-4860-8301-da579080af46","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"validatedResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}' headers: cache-control: - no-cache @@ -520,7 +520,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/exportTemplate?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/exportTemplate?api-version=2019-10-01 response: body: string: '{"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"location":{"allowedValues":["East @@ -566,7 +566,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-10-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml index e5594fe5ff38..9dc6ed00a8d8 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml @@ -20,7 +20,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template_errorafa117b7/providers/Microsoft.Resources/deployments/pytestlinkedafa117b7?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deployments/pytestlinkedafa117b7?api-version=2019-10-01 response: body: string: '{"error":{"code":"InvalidTemplateDeployment","message":"The template diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml index 78359006b220..48e410d29074 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml @@ -11,7 +11,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-10-01 response: body: string: '' @@ -49,7 +49,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4?api-version=2019-10-01 response: body: string: '' @@ -91,10 +91,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavset123ea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4\"\ + string: "{\r\n \"name\": \"pytestavset123ea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \ @@ -146,10 +146,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavsetea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ + string: "{\r\n \"name\": \"pytestavsetea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \ @@ -197,10 +197,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavsetea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ + string: "{\r\n \"name\": \"pytestavsetea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3,\r\n \"virtualMachines\": []\r\ @@ -246,10 +246,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavset123ea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4\"\ + string: "{\r\n \"name\": \"pytestavset123ea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3,\r\n \"virtualMachines\": []\r\ @@ -336,7 +336,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?%24filter=name+eq+%27pytestavsetea520dc4%27&api-version=2019-10-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU9EUTBRVFEtIiwibmV4dFJvd0tleSI6IjEhMTg4IU1VTTFRamd5UlVVNU1qazBORFUyT0VJd1F6QkNPVU0xTWpOQ1F6QkVPRFpmUjFKTUxWRlRWRVZUVkRWQlJUQTRSVFJHTlVFek5EUkZNVUU0TmtVNE1VWkRPRGswTnpVMk9EUTNMVTFKUTFKUFUwOUdWRG95UlU1RlZGZFBVa3M2TWtaUVZVSk1TVU5KVUVGRVJGSkZVMU5GVXpveVJrcEZUa3RKVGxOUVZVSk1TVU5KVUMxRlFWTlVWVk0tIn0%3d response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4","name":"pytestavsetea520dc4","type":"Microsoft.Compute/availabilitySets","sku":{"name":"Classic"},"location":"westus"}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4","name":"pytestavsetea520dc4","type":"Microsoft.Compute/availabilitySets","sku":{"name":"Classic"},"location":"westus"}]}' headers: cache-control: - no-cache @@ -402,7 +402,7 @@ interactions: code: 201 message: Created - request: - body: 'b''{"resources": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4"], + body: 'b''{"resources": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4"], "targetResourceGroup": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/pynewgroupea520dc4"}''' headers: Accept: @@ -418,7 +418,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/validateMoveResources?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/validateMoveResources?api-version=2019-10-01 response: body: string: '' @@ -657,7 +657,7 @@ interactions: code: 204 message: No Content - request: - body: 'b''{"resources": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4"], + body: 'b''{"resources": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset123ea520dc4"], "targetResourceGroup": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/pynewgroupea520dc4"}''' headers: Accept: @@ -673,7 +673,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/moveResources?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/moveResources?api-version=2019-10-01 response: body: string: '' @@ -1179,10 +1179,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavsetea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ + string: "{\r\n \"name\": \"pytestavsetea520dc4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"value1\"\r\n },\r\n \"\ properties\": {\r\n \"platformUpdateDomainCount\": 5,\r\n \"platformFaultDomainCount\"\ @@ -1287,7 +1287,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2019-07-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_deployment_scripts.test_deployment_scripts.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_deployment_scripts.test_deployment_scripts.yaml index eaea56f77924..b07c07fd4504 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_deployment_scripts.test_deployment_scripts.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_deployment_scripts.test_deployment_scripts.yaml @@ -18,10 +18,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai?api-version=2015-08-31-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai?api-version=2015-08-31-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai","name":"uai","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus","tags":{"key1":"value1"},"properties":{"tenantId":"00000000-0000-0000-0000-000000000000","principalId":"121200f5-5381-41e8-aec7-d3fb33135038","clientId":"67f79419-f80f-479e-aab9-b6244dfdf7f7","clientSecretUrl":"https://control-westus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai/credentials?tid=00000000-0000-0000-0000-000000000000&oid=121200f5-5381-41e8-aec7-d3fb33135038&aid=67f79419-f80f-479e-aab9-b6244dfdf7f7"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai","name":"uai","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus","tags":{"key1":"value1"},"properties":{"tenantId":"00000000-0000-0000-0000-000000000000","principalId":"121200f5-5381-41e8-aec7-d3fb33135038","clientId":"67f79419-f80f-479e-aab9-b6244dfdf7f7","clientSecretUrl":"https://control-westus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai/credentials?tid=00000000-0000-0000-0000-000000000000&oid=121200f5-5381-41e8-aec7-d3fb33135038&aid=67f79419-f80f-479e-aab9-b6244dfdf7f7"}}' headers: cache-control: - no-cache @@ -51,7 +51,7 @@ interactions: code: 200 message: OK - request: - body: 'b''{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": + body: 'b''{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}}}, "location": "westus", "kind": "AzurePowerShell", "properties": {"cleanupPreference": "Always", "scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs[\''test\''] = \''value\'' Get-AzResourceGroup -Location $Location -Name $Name", "arguments": @@ -71,12 +71,12 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview response: body: string: "{\r\n \"kind\": \"AzurePowerShell\",\r\n \"identity\": {\r\n \"\ type\": \"userAssigned\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\ - ,\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai\"\ + ,\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai\"\ : {\r\n \"principalId\": \"121200f5-5381-41e8-aec7-d3fb33135038\",\r\ \n \"clientId\": \"67f79419-f80f-479e-aab9-b6244dfdf7f7\"\r\n \ \ }\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\ @@ -91,7 +91,7 @@ interactions: \ \"arguments\": \"-Location 'westus' -Name \\\"*rg2\\\"\",\r\n \"retentionInterval\"\ : \"P7D\",\r\n \"timeout\": \"PT1H\",\r\n \"containerSettings\": {},\r\ \n \"status\": {},\r\n \"cleanupPreference\": \"Always\"\r\n },\r\n\ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest\"\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest\"\ ,\r\n \"type\": \"Microsoft.Resources/deploymentScripts\",\r\n \"name\"\ : \"scripttest\"\r\n}" headers: @@ -286,12 +286,12 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview response: body: string: "{\r\n \"kind\": \"AzurePowerShell\",\r\n \"identity\": {\r\n \"\ type\": \"userAssigned\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\ - ,\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai\"\ + ,\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai\"\ : {\r\n \"principalId\": \"121200f5-5381-41e8-aec7-d3fb33135038\",\r\ \n \"clientId\": \"67f79419-f80f-479e-aab9-b6244dfdf7f7\"\r\n \ \ }\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \ @@ -315,7 +315,7 @@ interactions: \ scope '/subscriptions/00000000-0000-0000-0000-000000000000' or the scope\ \ is invalid. If access was recently granted, please refresh your credentials.\"\ \r\n }\r\n },\r\n \"cleanupPreference\": \"Always\"\r\n },\r\n\ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest\"\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest\"\ ,\r\n \"type\": \"Microsoft.Resources/deploymentScripts\",\r\n \"name\"\ : \"scripttest\"\r\n}" headers: @@ -358,12 +358,12 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview response: body: string: "{\r\n \"kind\": \"AzurePowerShell\",\r\n \"identity\": {\r\n \"\ type\": \"userAssigned\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\ - ,\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai\"\ + ,\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai\"\ : {\r\n \"principalId\": \"121200f5-5381-41e8-aec7-d3fb33135038\",\r\ \n \"clientId\": \"67f79419-f80f-479e-aab9-b6244dfdf7f7\"\r\n \ \ }\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \ @@ -387,7 +387,7 @@ interactions: \ scope '/subscriptions/00000000-0000-0000-0000-000000000000' or the scope\ \ is invalid. If access was recently granted, please refresh your credentials.\"\ \r\n }\r\n },\r\n \"cleanupPreference\": \"Always\"\r\n },\r\n\ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest\"\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest\"\ ,\r\n \"type\": \"Microsoft.Resources/deploymentScripts\",\r\n \"name\"\ : \"scripttest\"\r\n}" headers: @@ -428,10 +428,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest/logs/default?api-version=2019-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest/logs/default?api-version=2019-10-01-preview response: body: - string: "{\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest/logs/default\"\ + string: "{\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest/logs/default\"\ ,\r\n \"type\": \"Microsoft.Resources/deploymentScripts/logs\",\r\n \"name\"\ : \"default\"\r\n}" headers: @@ -472,11 +472,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest/logs?api-version=2019-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest/logs?api-version=2019-10-01-preview response: body: string: "{\r\n \"value\": [\r\n {\r\n \"properties\": {},\r\n \ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest/logs/default\"\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest/logs/default\"\ ,\r\n \"type\": \"Microsoft.Resources/deploymentScripts/logs\",\r\n \ \ \"name\": \"default\"\r\n }\r\n ]\r\n}" headers: @@ -519,7 +519,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_deployment_scripts_test_deployment_scripts18bf1998/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Resources/deploymentScripts/scripttest?api-version=2019-10-01-preview response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_links.test_links.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_links.test_links.yaml index c82c623e009c..da724b2c2200 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_links.test_links.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_links.test_links.yaml @@ -15,10 +15,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavset7650e8a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a\"\ + string: "{\r\n \"name\": \"pytestavset7650e8a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \ @@ -70,10 +70,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavset7650e8a2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2\"\ + string: "{\r\n \"name\": \"pytestavset7650e8a2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \ @@ -110,7 +110,7 @@ interactions: code: 200 message: OK - request: - body: 'b''{"properties": {"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2", + body: 'b''{"properties": {"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2", "notes": "Testing links"}}''' headers: Accept: @@ -126,11 +126,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink?api-version=2016-09-01 response: body: - string: '{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing - links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}' + string: '{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing + links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}' headers: cache-control: - no-cache @@ -165,11 +165,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink?api-version=2016-09-01 response: body: - string: '{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing - links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}' + string: '{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing + links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}' headers: cache-control: - no-cache @@ -209,8 +209,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/links?api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing - links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}]}' + string: '{"value":[{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing + links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}]}' headers: cache-control: - no-cache @@ -247,11 +247,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links?$filter=atScope%28%29&api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links?$filter=atScope%28%29&api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing - links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}]}' + string: '{"value":[{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing + links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}]}' headers: cache-control: - no-cache @@ -288,11 +288,11 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links?$filter=atScope%28%29&api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links?$filter=atScope%28%29&api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing - links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}]}' + string: '{"value":[{"properties":{"sourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a2/","notes":"Testing + links"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink","type":"Microsoft.Resources/links","name":"myLink"}]}' headers: cache-control: - no-cache @@ -331,7 +331,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_links_test_links7650e8a/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset7650e8a/providers/Microsoft.Resources/links/myLink?api-version=2016-09-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks.yaml index 94a745168e94..21b7514aa27a 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks.yaml @@ -18,10 +18,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks71c0e80/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks71c0e80/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -59,10 +59,10 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks71c0e80/providers/Microsoft.Authorization/locks?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks?api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks71c0e80/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}]}' + string: '{"value":[{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}]}' headers: cache-control: - no-cache @@ -104,7 +104,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks71c0e80/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_group_level.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_group_level.yaml index 3c78ee53844e..f83f92262712 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_group_level.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_group_level.yaml @@ -15,10 +15,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -53,10 +53,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -93,10 +93,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks?api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}]}' + string: '{"value":[{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}]}' headers: cache-control: - no-cache @@ -135,7 +135,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_group_leveldf68187e/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_level.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_level.yaml index a2be64bcff38..55ba23442171 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_level.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_at_resource_level.yaml @@ -15,10 +15,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavset529215f2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2\"\ + string: "{\r\n \"name\": \"pytestavset529215f2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \ @@ -70,10 +70,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -108,10 +108,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -148,10 +148,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks?api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}]}' + string: '{"value":[{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}]}' headers: cache-control: - no-cache @@ -190,7 +190,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: string: '' @@ -228,7 +228,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_locks_test_locks_at_resource_level529215f2/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset529215f2?api-version=2019-07-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_by_scope.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_by_scope.yaml index 3d17fcfa1660..265d86b010ae 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_by_scope.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_locks.test_locks_by_scope.yaml @@ -15,10 +15,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_by_scope9be91233/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"pytestavset9be91233\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_by_scope9be91233/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233\"\ + string: "{\r\n \"name\": \"pytestavset9be91233\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233\"\ ,\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"sku\": {\r\n \ @@ -70,10 +70,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Ftest_mgmt_resource_locks_test_locks_by_scope9be91233%2Fproviders%2FMicrosoft.Compute%2FavailabilitySets%2Fpytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Frgname%2Fproviders%2FMicrosoft.Compute%2FavailabilitySets%2Fpytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_by_scope9be91233/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -108,10 +108,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Ftest_mgmt_resource_locks_test_locks_by_scope9be91233%2Fproviders%2FMicrosoft.Compute%2FavailabilitySets%2Fpytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Frgname%2Fproviders%2FMicrosoft.Compute%2FavailabilitySets%2Fpytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: - string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_by_scope9be91233/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' + string: '{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg","type":"Microsoft.Authorization/locks","name":"pylockrg"}' headers: cache-control: - no-cache @@ -150,7 +150,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Ftest_mgmt_resource_locks_test_locks_by_scope9be91233%2Fproviders%2FMicrosoft.Compute%2FavailabilitySets%2Fpytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 + uri: https://management.azure.com/%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Frgname%2Fproviders%2FMicrosoft.Compute%2FavailabilitySets%2Fpytestavset9be91233/providers/Microsoft.Authorization/locks/pylockrg?api-version=2016-09-01 response: body: string: '' @@ -188,7 +188,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_locks_test_locks_by_scope9be91233/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/pytestavset9be91233?api-version=2019-07-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application.yaml index a83914d96a70..5fb038e5a523 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application.yaml @@ -59,11 +59,11 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '{"properties":{"authorizations":[],"isEnabled":true,"lockLevel":"None","displayName":"myManagedApplicationDef","description":"myManagedApplicationDef - description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_A3788081945E593C1B276966D89260D933BE7FAC/4d96986cbdb64bd392534061c72c7db2/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East + description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_A3788081945E593C1B276966D89260D933BE7FAC/4d96986cbdb64bd392534061c72c7db2/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East US"}' headers: cache-control: @@ -99,11 +99,11 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '{"properties":{"authorizations":[],"isEnabled":true,"lockLevel":"None","displayName":"myManagedApplicationDef","description":"myManagedApplicationDef - description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_A3788081945E593C1B276966D89260D933BE7FAC/4d96986cbdb64bd392534061c72c7db2/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East + description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_A3788081945E593C1B276966D89260D933BE7FAC/4d96986cbdb64bd392534061c72c7db2/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East US"}' headers: cache-control: @@ -141,11 +141,11 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '{"properties":{"authorizations":[],"isEnabled":true,"lockLevel":"None","displayName":"myManagedApplicationDef","description":"myManagedApplicationDef - description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_A3788081945E593C1B276966D89260D933BE7FAC/4d96986cbdb64bd392534061c72c7db2/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East + description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_A3788081945E593C1B276966D89260D933BE7FAC/4d96986cbdb64bd392534061c72c7db2/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East US"}' headers: cache-control: @@ -174,7 +174,7 @@ interactions: - request: body: 'b''{"location": "East US", "kind": "ServiceCatalog", "properties": {"managedResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz", - "applicationDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition"}}''' + "applicationDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition"}}''' headers: Accept: - application/json @@ -189,14 +189,14 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: - string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East + string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East US"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 cache-control: - no-cache @@ -209,7 +209,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 pragma: - no-cache strict-transport-security: @@ -233,10 +233,10 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: - string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East + string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East US"}' headers: cache-control: @@ -279,10 +279,10 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: - string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East + string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East US"}' headers: cache-control: @@ -324,7 +324,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: string: '' @@ -338,7 +338,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 pragma: - no-cache strict-transport-security: @@ -362,7 +362,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 response: body: string: '{"status":"Accepted"}' @@ -398,7 +398,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 response: body: string: '{"status":"Accepted"}' @@ -434,7 +434,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VQcm92aXNpb25pbmdKb2I6MkRSR0E6MkRURVNUOjNBNUZNR01UOjNBNUZSRVNPVVJDRTozQTVGTUFOQUdFRDozQTVGQVBQTElDQVRJT046M0E6N0M0RTI3QzYxNUMyNkVGNDA1OjJEQVBQTElDQVRJT05URVNUIn0?api-version=2018-06-01 response: body: string: '{"status":"Failed","error":{"code":"InvalidApplianceState","message":"The @@ -476,7 +476,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 response: body: string: '{"status":"Accepted"}' @@ -512,7 +512,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 response: body: string: '{"status":"Accepted"}' @@ -548,7 +548,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 response: body: string: '{"status":"Accepted"}' @@ -584,7 +584,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb243YzdiMTY5Yy9wcm92aWRlcnMvTWljcm9zb2Z0LlNvbHV0aW9ucy9hcHBsaWNhdGlvbnMvYXBwbGljYXRpb250ZXN0Iiwiam9iSWQiOiJBcHBsaWFuY2VEZXByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzRFMjdDNjE1QzI2RUY0MDV8MzY3RUI4ODhBRDJERTBGMiJ9?api-version=2018-06-01 response: body: string: '{"status":"Succeeded"}' @@ -626,7 +626,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application7c7b169c/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application_by_id.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application_by_id.yaml index a2ec27704566..1bbb91d5dcb6 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application_by_id.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_managed_application.test_application_by_id.yaml @@ -59,11 +59,11 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '{"properties":{"authorizations":[],"isEnabled":true,"lockLevel":"None","displayName":"myManagedApplicationDef","description":"myManagedApplicationDef - description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_7BFBBDEE70FA823E830F329075AEAFC1461E5661/cb79ecea0882417fb656a9618e8854f8/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East + description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_7BFBBDEE70FA823E830F329075AEAFC1461E5661/cb79ecea0882417fb656a9618e8854f8/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East US"}' headers: cache-control: @@ -99,11 +99,11 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '{"properties":{"authorizations":[],"isEnabled":true,"lockLevel":"None","displayName":"myManagedApplicationDef","description":"myManagedApplicationDef - description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_7BFBBDEE70FA823E830F329075AEAFC1461E5661/cb79ecea0882417fb656a9618e8854f8/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East + description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_7BFBBDEE70FA823E830F329075AEAFC1461E5661/cb79ecea0882417fb656a9618e8854f8/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East US"}' headers: cache-control: @@ -141,11 +141,11 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '{"properties":{"authorizations":[],"isEnabled":true,"lockLevel":"None","displayName":"myManagedApplicationDef","description":"myManagedApplicationDef - description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_7BFBBDEE70FA823E830F329075AEAFC1461E5661/cb79ecea0882417fb656a9618e8854f8/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East + description","artifacts":[{"name":"ApplicationResourceTemplate","type":"Template","uri":"https://prdsapplianceprodbl01.blob.core.windows.net/applicationdefinitions/844A4_1C5B82EE92944568B0C0B9C523BC0D86_7BFBBDEE70FA823E830F329075AEAFC1461E5661/cb79ecea0882417fb656a9618e8854f8/applicationResourceTemplate.json"},{"name":"CreateUiDefinition","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"},{"name":"MainTemplateParameters","type":"Custom","uri":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","name":"applicationdefinition","type":"Microsoft.Solutions/applicationDefinitions","location":"East US"}' headers: cache-control: @@ -174,7 +174,7 @@ interactions: - request: body: 'b''{"location": "East US", "kind": "ServiceCatalog", "properties": {"managedResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz", - "applicationDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition"}}''' + "applicationDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition"}}''' headers: Accept: - application/json @@ -189,14 +189,14 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: - string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East + string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East US"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/locations/East + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZVByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzFBODMzOUY5NzREOUYxOUI6MkRBUFBMSUNBVElPTlRFU1QifQ?api-version=2018-06-01 cache-control: - no-cache @@ -209,7 +209,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZVByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzFBODMzOUY5NzREOUYxOUI6MkRBUFBMSUNBVElPTlRFU1QifQ?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZVByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzFBODMzOUY5NzREOUYxOUI6MkRBUFBMSUNBVElPTlRFU1QifQ?api-version=2018-06-01 pragma: - no-cache strict-transport-security: @@ -233,10 +233,10 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: - string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East + string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","authorizations":[],"createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East US"}' headers: cache-control: @@ -279,10 +279,10 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: - string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East + string: '{"properties":{"managedResourceGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myManagedRGtest_group_name_xyz","applicationDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","publisherPackageId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition","provisioningState":"Accepted","createdBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"},"updatedBy":{"oid":"20d81029-94cd-4923-a766-994415ff73bd","applicationId":"5f27a805-7ee7-4f96-a47e-ae04821aef22"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest","name":"applicationtest","type":"Microsoft.Solutions/applications","kind":"ServiceCatalog","location":"East US"}' headers: cache-control: @@ -324,7 +324,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applications/applicationtest?api-version=2018-06-01 response: body: string: '' @@ -338,7 +338,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZURlcHJvdmlzaW9uaW5nSm9iOjJEUkdBOjJEVEVTVDozQTVGTUdNVDozQTVGUkVTT1VSQ0U6M0E1Rk1BTkFHRUQ6M0E1RkFQUExJQ0FUSU9OOjNBOjdDMUE4MzM5Rjk3NEQ5RjE5QnxDNDlCODEyRDdENzZCMTUzIn0?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZURlcHJvdmlzaW9uaW5nSm9iOjJEUkdBOjJEVEVTVDozQTVGTUdNVDozQTVGUkVTT1VSQ0U6M0E1Rk1BTkFHRUQ6M0E1RkFQUExJQ0FUSU9OOjNBOjdDMUE4MzM5Rjk3NEQ5RjE5QnxDNDlCODEyRDdENzZCMTUzIn0?api-version=2018-06-01 pragma: - no-cache strict-transport-security: @@ -362,7 +362,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZVByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzFBODMzOUY5NzREOUYxOUI6MkRBUFBMSUNBVElPTlRFU1QifQ?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZVByb3Zpc2lvbmluZ0pvYjoyRFJHQToyRFRFU1Q6M0E1Rk1HTVQ6M0E1RlJFU09VUkNFOjNBNUZNQU5BR0VEOjNBNUZBUFBMSUNBVElPTjozQTo3QzFBODMzOUY5NzREOUYxOUI6MkRBUFBMSUNBVElPTlRFU1QifQ?api-version=2018-06-01 response: body: string: '{"status":"Failed","error":{"code":"InvalidApplianceState","message":"The @@ -404,7 +404,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZURlcHJvdmlzaW9uaW5nSm9iOjJEUkdBOjJEVEVTVDozQTVGTUdNVDozQTVGUkVTT1VSQ0U6M0E1Rk1BTkFHRUQ6M0E1RkFQUExJQ0FUSU9OOjNBOjdDMUE4MzM5Rjk3NEQ5RjE5QnxDNDlCODEyRDdENzZCMTUzIn0?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZURlcHJvdmlzaW9uaW5nSm9iOjJEUkdBOjJEVEVTVDozQTVGTUdNVDozQTVGUkVTT1VSQ0U6M0E1Rk1BTkFHRUQ6M0E1RkFQUExJQ0FUSU9OOjNBOjdDMUE4MzM5Rjk3NEQ5RjE5QnxDNDlCODEyRDdENzZCMTUzIn0?api-version=2018-06-01 response: body: string: '{"status":"Accepted"}' @@ -440,7 +440,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZURlcHJvdmlzaW9uaW5nSm9iOjJEUkdBOjJEVEVTVDozQTVGTUdNVDozQTVGUkVTT1VSQ0U6M0E1Rk1BTkFHRUQ6M0E1RkFQUExJQ0FUSU9OOjNBOjdDMUE4MzM5Rjk3NEQ5RjE5QnxDNDlCODEyRDdENzZCMTUzIn0?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/locations/East%20US/operationStatuses/eyJmdWxseVF1YWxpZmllZEFwcGxpYW5jZUlkIjoiL3N1YnNjcmlwdGlvbnMvMWM1YjgyZWUtOTI5NC00NTY4LWIwYzAtYjljNTIzYmMwZDg2L3Jlc291cmNlR3JvdXBzL3Rlc3RfbWdtdF9yZXNvdXJjZV9tYW5hZ2VkX2FwcGxpY2F0aW9uX3Rlc3RfYXBwbGljYXRpb25fYnlfaWRjOGQxOTAyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU29sdXRpb25zL2FwcGxpY2F0aW9ucy9hcHBsaWNhdGlvbnRlc3QiLCJqb2JJZCI6IkFwcGxpYW5jZURlcHJvdmlzaW9uaW5nSm9iOjJEUkdBOjJEVEVTVDozQTVGTUdNVDozQTVGUkVTT1VSQ0U6M0E1Rk1BTkFHRUQ6M0E1RkFQUExJQ0FUSU9OOjNBOjdDMUE4MzM5Rjk3NEQ5RjE5QnxDNDlCODEyRDdENzZCMTUzIn0?api-version=2018-06-01 response: body: string: '{"status":"Succeeded"}' @@ -482,7 +482,7 @@ interactions: User-Agent: - azsdk-python-mgmt-resource/unknown Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_managed_application_test_application_by_idc8d1902/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Solutions/applicationDefinitions/applicationdefinition?api-version=2018-06-01 response: body: string: '' diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml index 2f0345437f11..7172e101c497 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml @@ -8002,10 +8002,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 response: body: - string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' + string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' headers: cache-control: - no-cache @@ -8086,10 +8086,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 response: body: - string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' + string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' headers: cache-control: - no-cache @@ -8132,7 +8132,7 @@ interactions: string: '{"value":[{"sku":{"name":"A1","tier":"Standard"},"properties":{"displayName":"ASC Default (subscription: 00000000-0000-0000-0000-000000000000)","policyDefinitionId":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","parameters":{"diagnosticsLogsInServiceFabricMonitoringEffect":{"value":"AuditIfNotExists"},"systemUpdatesMonitoringEffect":{"value":"AuditIfNotExists"},"systemConfigurationsMonitoringEffect":{"value":"AuditIfNotExists"},"endpointProtectionMonitoringEffect":{"value":"AuditIfNotExists"},"diskEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"networkSecurityGroupsMonitoringEffect":{"value":"AuditIfNotExists"},"webApplicationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"sqlAuditingMonitoringEffect":{"value":"AuditIfNotExists"},"sqlEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"nextGenerationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"vulnerabilityAssesmentMonitoringEffect":{"value":"AuditIfNotExists"},"storageEncryptionMonitoringEffect":{"value":"Audit"},"jitNetworkAccessMonitoringEffect":{"value":"AuditIfNotExists"},"adaptiveApplicationControlsMonitoringEffect":{"value":"AuditIfNotExists"},"identityDesignateLessThanOwnersMonitoringEffect":{"value":"AuditIfNotExists"},"identityDesignateMoreThanOneOwnerMonitoringEffect":{"value":"AuditIfNotExists"},"identityEnableMFAForOwnerPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityEnableMFAForWritePermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityEnableMFAForReadPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveDeprecatedAccountWithOwnerPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveDeprecatedAccountMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveExternalAccountWithOwnerPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveExternalAccountWithWritePermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveExternalAccountWithReadPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"secureTransferToStorageAccountMonitoringEffect":{"value":"Audit"},"aadAuthenticationInSqlServerMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInRedisCacheMonitoringEffect":{"value":"Audit"},"clusterProtectionLevelInServiceFabricMonitoringEffect":{"value":"Audit"},"aadAuthenticationInServiceFabricMonitoringEffect":{"value":"Audit"},"diagnosticsLogsInServiceBusMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInDataLakeAnalyticsMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInDataLakeStoreMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInBatchAccountMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInEventHubMonitoringEffect":{"value":"AuditIfNotExists"},"metricAlertsInBatchAccountMonitoringEffect":{"value":"AuditIfNotExists"},"namespaceAuthorizationRulesInServiceBusMonitoringEffect":{"value":"Audit"},"disableUnrestrictedNetworkToStorageAccountMonitoringEffect":{"value":"Audit"},"classicComputeVMsMonitoringEffect":{"value":"Audit"},"classicStorageAccountsMonitoringEffect":{"value":"Audit"},"sqlDbVulnerabilityAssesmentMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInKeyVaultMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInStreamAnalyticsMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInSearchServiceMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInLogicAppsMonitoringEffect":{"value":"AuditIfNotExists"}},"description":"This policy assignment was automatically created by Azure Security Center","metadata":{"assignedBy":"Security - Center"},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/SecurityCenterBuiltIn","type":"Microsoft.Authorization/policyAssignments","name":"SecurityCenterBuiltIn"},{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"audit + Center"},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/SecurityCenterBuiltIn","type":"Microsoft.Authorization/policyAssignments","name":"SecurityCenterBuiltIn"},{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"audit ssh auth_1.4","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policySetDefinitions/3be0ea1bef3d71ca","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"AllowedLocations1":{"value":["centraluseuap","eastus2euap","westcentralus","northcentralus","westus","eastasia","australiacentral","australiaeast","canadacentral","northeurope","centralindia","japaneast","koreacentral","uksouth","centralus","eastus","westus2","francecentral","southafricanorth","germanynorth","norwayeast","switzerlandnorth","uaenorth"]}},"description":"This initiative audits whether any Linux VMs or VMSS use password-only authentication for SSH. See https://aka.ms/gt/AzurePolicy for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2020-05-12T23:48:29.541787Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2020-05-18T23:49:07.5223938Z"},"enforcementMode":"Default"},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/1fc2c9de5f6971ca","type":"Microsoft.Authorization/policyAssignments","name":"1fc2c9de5f6971ca"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"audit @@ -8249,13 +8249,13 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments?api-version=2019-09-01 response: body: string: '{"value":[{"sku":{"name":"A1","tier":"Standard"},"properties":{"displayName":"ASC Default (subscription: 00000000-0000-0000-0000-000000000000)","policyDefinitionId":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","parameters":{"diagnosticsLogsInServiceFabricMonitoringEffect":{"value":"AuditIfNotExists"},"systemUpdatesMonitoringEffect":{"value":"AuditIfNotExists"},"systemConfigurationsMonitoringEffect":{"value":"AuditIfNotExists"},"endpointProtectionMonitoringEffect":{"value":"AuditIfNotExists"},"diskEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"networkSecurityGroupsMonitoringEffect":{"value":"AuditIfNotExists"},"webApplicationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"sqlAuditingMonitoringEffect":{"value":"AuditIfNotExists"},"sqlEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"nextGenerationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"vulnerabilityAssesmentMonitoringEffect":{"value":"AuditIfNotExists"},"storageEncryptionMonitoringEffect":{"value":"Audit"},"jitNetworkAccessMonitoringEffect":{"value":"AuditIfNotExists"},"adaptiveApplicationControlsMonitoringEffect":{"value":"AuditIfNotExists"},"identityDesignateLessThanOwnersMonitoringEffect":{"value":"AuditIfNotExists"},"identityDesignateMoreThanOneOwnerMonitoringEffect":{"value":"AuditIfNotExists"},"identityEnableMFAForOwnerPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityEnableMFAForWritePermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityEnableMFAForReadPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveDeprecatedAccountWithOwnerPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveDeprecatedAccountMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveExternalAccountWithOwnerPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveExternalAccountWithWritePermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"identityRemoveExternalAccountWithReadPermissionsMonitoringEffect":{"value":"AuditIfNotExists"},"secureTransferToStorageAccountMonitoringEffect":{"value":"Audit"},"aadAuthenticationInSqlServerMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInRedisCacheMonitoringEffect":{"value":"Audit"},"clusterProtectionLevelInServiceFabricMonitoringEffect":{"value":"Audit"},"aadAuthenticationInServiceFabricMonitoringEffect":{"value":"Audit"},"diagnosticsLogsInServiceBusMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInDataLakeAnalyticsMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInDataLakeStoreMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInBatchAccountMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInEventHubMonitoringEffect":{"value":"AuditIfNotExists"},"metricAlertsInBatchAccountMonitoringEffect":{"value":"AuditIfNotExists"},"namespaceAuthorizationRulesInServiceBusMonitoringEffect":{"value":"Audit"},"disableUnrestrictedNetworkToStorageAccountMonitoringEffect":{"value":"Audit"},"classicComputeVMsMonitoringEffect":{"value":"Audit"},"classicStorageAccountsMonitoringEffect":{"value":"Audit"},"sqlDbVulnerabilityAssesmentMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInKeyVaultMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInStreamAnalyticsMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInSearchServiceMonitoringEffect":{"value":"AuditIfNotExists"},"diagnosticsLogsInLogicAppsMonitoringEffect":{"value":"AuditIfNotExists"}},"description":"This policy assignment was automatically created by Azure Security Center","metadata":{"assignedBy":"Security - Center"},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/SecurityCenterBuiltIn","type":"Microsoft.Authorization/policyAssignments","name":"SecurityCenterBuiltIn"},{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"audit + Center"},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/SecurityCenterBuiltIn","type":"Microsoft.Authorization/policyAssignments","name":"SecurityCenterBuiltIn"},{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"audit ssh auth_1.4","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policySetDefinitions/3be0ea1bef3d71ca","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"AllowedLocations1":{"value":["centraluseuap","eastus2euap","westcentralus","northcentralus","westus","eastasia","australiacentral","australiaeast","canadacentral","northeurope","centralindia","japaneast","koreacentral","uksouth","centralus","eastus","westus2","francecentral","southafricanorth","germanynorth","norwayeast","switzerlandnorth","uaenorth"]}},"description":"This initiative audits whether any Linux VMs or VMSS use password-only authentication for SSH. See https://aka.ms/gt/AzurePolicy for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2020-05-12T23:48:29.541787Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2020-05-18T23:49:07.5223938Z"},"enforcementMode":"Default"},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/1fc2c9de5f6971ca","type":"Microsoft.Authorization/policyAssignments","name":"1fc2c9de5f6971ca"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"audit @@ -8374,10 +8374,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 response: body: - string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' + string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:20.1637971Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' headers: cache-control: - no-cache @@ -8420,10 +8420,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 response: body: - string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:22.8715861Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' + string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:22.8715861Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' headers: cache-control: - no-cache @@ -8499,10 +8499,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 response: body: - string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:22.8715861Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' + string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:22.8715861Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' headers: cache-control: - no-cache @@ -8541,10 +8541,10 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2019-09-01 response: body: - string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:22.8715861Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' + string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname","metadata":{"createdBy":"20d81029-94cd-4923-a766-994415ff73bd","createdOn":"2020-05-19T17:24:22.8715861Z","updatedBy":null,"updatedOn":null},"enforcementMode":"Default"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}' headers: cache-control: - no-cache diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition_at_management_group.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition_at_management_group.yaml index b2a451fabe88..7904df0fc6b3 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition_at_management_group.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition_at_management_group.yaml @@ -14588,7 +14588,7 @@ interactions: User-Agent: - azsdk-python-azure-mgmt-resource/0.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definition_at_management_groupcdf01c2c/providers/Microsoft.Authorization/policyAssignments?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Authorization/policyAssignments?api-version=2019-09-01 response: body: string: '{"value":[{"sku":{"name":"A1","tier":"Standard"},"properties":{"displayName":"ASC diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py index af712768a3c2..9e1cc0c9d620 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py @@ -22,7 +22,7 @@ import azure.mgmt.resource import azure.mgmt.resource.resources.v2019_07_01 import azure.common.exceptions -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer template = { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", @@ -228,7 +228,7 @@ def test_resource_groups(self): result_delete = self.resource_client.resource_groups.begin_delete(group_name) result_delete.wait() - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_resources(self, resource_group, location): SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID resource_name = self.get_resource_name("pytestavset") @@ -372,7 +372,7 @@ def test_resources(self, resource_group, location): ) async_delete.wait() - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_deployments_basic(self, resource_group, location): # for more sample templates, see https://github.com/Azure/azure-quickstart-templates deployment_name = self.get_resource_name("pytestdeployment") @@ -482,7 +482,7 @@ def test_deployments_basic(self, resource_group, location): ) async_delete.wait() - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_deployments_at_scope(self, resource_group, location): SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID SCOPE = "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}".format( diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_async.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_async.py index 03811b2424ee..c2b129c98829 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_async.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_async.py @@ -11,7 +11,7 @@ import azure.mgmt.resource.resources.v2019_10_01 import azure.common.exceptions -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer from _aio_testcase import AzureMgmtAsyncTestCase diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_deployment_scripts.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_deployment_scripts.py index 5c7405f5d8aa..3727116045f0 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_deployment_scripts.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_deployment_scripts.py @@ -13,7 +13,7 @@ import azure.core.exceptions import azure.mgmt.resource -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer class MgmtResourceDeploymentScriptTest(AzureMgmtTestCase): @@ -29,7 +29,7 @@ def setUp(self): ManagedServiceIdentityClient ) - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_deployment_scripts(self, resource_group, location): SUBSCRIPTION = self.settings.SUBSCRIPTION_ID script_name = "scripttest" diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_links.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_links.py index 16252c6387d6..bcc9bc06722d 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_links.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_links.py @@ -13,7 +13,7 @@ import unittest import azure.mgmt.resource -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer class MgmtResourceLinksTest(AzureMgmtTestCase): @@ -26,7 +26,7 @@ def setUp(self): azure.mgmt.resource.resources.ResourceManagementClient ) - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_links(self, resource_group, location): resource_name = self.get_resource_name("pytestavset") if not self.is_playback(): diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_locks.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_locks.py index 21f2c382866a..cd713c4ebfe0 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_locks.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_locks.py @@ -13,7 +13,7 @@ import unittest import azure.mgmt.resource -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer class MgmtResourceLocksTest(AzureMgmtTestCase): @@ -48,7 +48,7 @@ def test_locks_at_subscription_level(self): lock_name ) - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_locks_by_scope(self, resource_group): lock_name = "pylockrg" SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID @@ -96,7 +96,7 @@ def test_locks_by_scope(self, resource_group): ) result = result.result() - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_locks_at_resource_level(self, resource_group, location): lock_name = 'pylockrg' resource_name = self.get_resource_name("pytestavset") @@ -163,7 +163,7 @@ def test_locks_at_resource_level(self, resource_group, location): ) delete_result.wait() - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_locks_at_resource_group_level(self, resource_group, location): lock_name = 'pylockrg' diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_managed_application.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_managed_application.py index 543f7cef14eb..c5c153375ea2 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_managed_application.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_managed_application.py @@ -14,7 +14,7 @@ import azure.mgmt.resource # import azure.mgmt.managementgroups -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer class MgmtResourceLinksTest(AzureMgmtTestCase): @@ -34,7 +34,7 @@ def setUp(self): credentials=self.settings.get_credentials() ) - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_application_by_id(self, resource_group, location): application_name = "applicationtest" app_def_name = "applicationdefinition" @@ -140,7 +140,7 @@ def test_application_by_id(self, resource_group, location): result_delete = self.resource_client.resource_groups.begin_delete(group_name) result_delete.wait() - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_application(self, resource_group, location): app_def_name = "applicationdefinition" application_name = "applicationtest" diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py index 0ad79cb8fc88..13d7be57b535 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py @@ -15,7 +15,7 @@ # import azure.mgmt.managementgroups import azure.mgmt.resource -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, RandomNameResourceGroupPreparer class MgmtResourcePolicyTest(AzureMgmtTestCase): @@ -32,7 +32,7 @@ def setUp(self): credentials=self.settings.get_credentials() ) - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_policy_definition_at_management_group(self, resource_group, location): policy_name = self.get_resource_name('pypolicy') policy_assignment_name = self.get_resource_name('passignment') @@ -215,7 +215,7 @@ def test_policy_definition_at_management_group(self, resource_group, location): result = result.result() # @unittest.skip("Forbidden") - @ResourceGroupPreparer() + @RandomNameResourceGroupPreparer() def test_policy_definition(self, resource_group, location): policy_name = self.get_resource_name('pypolicy') policy_assignment_name = self.get_resource_name('pypolicyassignment')