From 133b79de5ec34504bbdd5326a6dcb0367830c2cc Mon Sep 17 00:00:00 2001 From: jiasli <4003950+jiasli@users.noreply.github.com> Date: Thu, 9 Jun 2022 11:37:13 +0800 Subject: [PATCH] sp-update --- .../role/_msgrpah/_graph_client.py | 6 +- .../cli/command_modules/role/commands.py | 3 +- .../azure/cli/command_modules/role/custom.py | 25 +- .../latest/recordings/test_app_scenario.yaml | 539 +++++++++++++----- .../test_service_principal_scenario.yaml | 504 ++++++++++++---- .../role/tests/latest/test_graph.py | 8 + .../latest/test_role_commands_thru_mock.py | 6 +- 7 files changed, 830 insertions(+), 261 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/role/_msgrpah/_graph_client.py b/src/azure-cli/azure/cli/command_modules/role/_msgrpah/_graph_client.py index ffb555da850..58cd3de51b1 100644 --- a/src/azure-cli/azure/cli/command_modules/role/_msgrpah/_graph_client.py +++ b/src/azure-cli/azure/cli/command_modules/role/_msgrpah/_graph_client.py @@ -95,7 +95,7 @@ def application_delete(self, id): result = self._send("DELETE", "/applications/{id}".format(id=id)) return result - def application_patch(self, id, body): + def application_update(self, id, body): # https://docs.microsoft.com/en-us/graph/api/application-update result = self._send("PATCH", "/applications/{id}".format(id=id), body=body) return result @@ -146,7 +146,7 @@ def service_principal_delete(self, id): result = self._send("DELETE", "/servicePrincipals/{id}".format(id=id)) return result - def service_principal_patch(self, id, body): + def service_principal_update(self, id, body): # https://docs.microsoft.com/en-us/graph/api/serviceprincipal-update result = self._send("PATCH", "/servicePrincipals/{id}".format(id=id), body=body) return result @@ -268,7 +268,7 @@ def user_delete(self, id_or_upn): result = self._send("DELETE", "/users/{}".format(id_or_upn)) return result - def user_patch(self, id_or_upn, body): + def user_update(self, id_or_upn, body): # https://docs.microsoft.com/graph/api/user-update result = self._send("PATCH", "/users/{}".format(id_or_upn), body=body) return result diff --git a/src/azure-cli/azure/cli/command_modules/role/commands.py b/src/azure-cli/azure/cli/command_modules/role/commands.py index 675444d2e8b..aa40c33f949 100644 --- a/src/azure-cli/azure/cli/command_modules/role/commands.py +++ b/src/azure-cli/azure/cli/command_modules/role/commands.py @@ -111,7 +111,8 @@ def load_command_table(self, _): g.custom_command('list', 'list_service_principals', table_transformer=get_graph_object_transformer('sp')) g.custom_show_command('show', 'show_service_principal') g.generic_update_command('update', getter_name='show_service_principal', getter_type=role_custom, - setter_name='patch_service_principal', setter_type=role_custom) + setter_name='patch_service_principal', setter_type=role_custom, + custom_func_name='update_service_principal', custom_func_type=role_custom) with self.command_group('ad sp owner', client_factory=get_graph_client, exception_handler=graph_err_handler) as g: g.custom_command('list', 'list_service_principal_owners') diff --git a/src/azure-cli/azure/cli/command_modules/role/custom.py b/src/azure-cli/azure/cli/command_modules/role/custom.py index fc718ec882e..c17646e1811 100644 --- a/src/azure-cli/azure/cli/command_modules/role/custom.py +++ b/src/azure-cli/azure/cli/command_modules/role/custom.py @@ -721,7 +721,7 @@ def update_application(instance, display_name=None, identifier_uris=None, # pyl def patch_application(cmd, identifier, parameters): graph_client = _graph_client_factory(cmd.cli_ctx) object_id = _resolve_application(graph_client, identifier) - return graph_client.application_patch(object_id, parameters) + return graph_client.application_update(object_id, parameters) def show_application(client, identifier): @@ -788,7 +788,7 @@ def reset_application_credential(cmd, client, identifier, create_cert=False, cer raise CLIError("can't find an application matching '{}'".format(identifier)) result = _reset_credential( cmd, app, client.application_add_password, client.application_remove_password, - client.application_patch, create_cert=create_cert, cert=cert, years=years, + client.application_update, create_cert=create_cert, cert=cert, years=years, end_date=end_date, keyvault=keyvault, append=append, display_name=display_name) result['tenant'] = client.tenant return result @@ -796,7 +796,7 @@ def reset_application_credential(cmd, client, identifier, create_cert=False, cer def delete_application_credential(cmd, client, identifier, key_id, cert=False): # pylint: disable=unused-argument sp = show_application(client, identifier) - _delete_credential(sp, client.application_remove_password, client.application_patch, + _delete_credential(sp, client.application_remove_password, client.application_update, key_id=key_id, cert=cert) @@ -875,7 +875,7 @@ def add_permission(client, identifier, api, api_permissions): } required_resource_access_list.append(required_resource_access) body = {'requiredResourceAccess': required_resource_access_list} - client.application_patch(application[ID], body) + client.application_update(application[ID], body) logger.warning('Invoking `az ad app permission grant --id %s --api %s` is needed to make the ' 'change effective', identifier, api) @@ -916,7 +916,7 @@ def delete_permission(client, identifier, api, api_permissions=None): required_resource_access_list.remove(existing_required_resource_access) body = {'requiredResourceAccess': required_resource_access_list} - return client.application_patch(application[ID], body) + return client.application_update(application[ID], body) def list_permissions(cmd, identifier): @@ -983,10 +983,15 @@ def create_service_principal(cmd, identifier): return _create_service_principal(cmd.cli_ctx, identifier) +def update_service_principal(instance): # pylint: disable=unused-argument + # Do not PATCH back properties retrieved with GET and leave everything else to generic update. + return {} + + def patch_service_principal(cmd, identifier, parameters): graph_client = _graph_client_factory(cmd.cli_ctx) - object_id = _resolve_service_principal(graph_client.service_principals, identifier) - return graph_client.service_principals.update(object_id, parameters) + object_id = _resolve_service_principal(graph_client, identifier) + return graph_client.service_principal_update(object_id, parameters) def _create_service_principal(cli_ctx, identifier, resolve_app=True): @@ -1058,7 +1063,7 @@ def reset_service_principal_credential(cmd, client, identifier, create_cert=Fals result = _reset_credential( cmd, sp, client.service_principal_add_password, client.service_principal_remove_password, - client.service_principal_patch, + client.service_principal_update, create_cert=create_cert, cert=cert, years=years, end_date=end_date, keyvault=keyvault, append=append, display_name=display_name) result['tenant'] = client.tenant @@ -1068,7 +1073,7 @@ def reset_service_principal_credential(cmd, client, identifier, create_cert=Fals def delete_service_principal_credential(cmd, client, # pylint: disable=unused-argument identifier, key_id, cert=False): sp = show_service_principal(client, identifier) - _delete_credential(sp, client.service_principal_remove_password, client.service_principal_patch, + _delete_credential(sp, client.service_principal_remove_password, client.service_principal_update, key_id=key_id, cert=cert) @@ -1801,7 +1806,7 @@ def update_user(client, upn_or_object_id, display_name=None, force_change_passwo _set_user_properties(body, display_name=display_name, password=password, mail_nickname=mail_nickname, force_change_password_next_sign_in=force_change_password_next_sign_in, account_enabled=account_enabled) - return client.user_patch(upn_or_object_id, body) + return client.user_update(upn_or_object_id, body) def _set_user_properties(body, **kwargs): diff --git a/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_app_scenario.yaml b/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_app_scenario.yaml index 5460b84f82a..a412e8266b5 100644 --- a/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_app_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_app_scenario.yaml @@ -15,7 +15,7 @@ interactions: --web-home-page-url --web-redirect-uris --enable-access-token-issuance --enable-id-token-issuance --public-client-redirect-uris --key-value --app-roles --optional-claims --required-resource-accesses User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET uri: https://graph.microsoft.com/v1.0/applications?$filter=startswith(displayName,'azure-cli-test000001') response: @@ -29,11 +29,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:52:59 GMT + - Thu, 09 Jun 2022 05:55:04 GMT odata-version: - '4.0' request-id: - - 6f01ba27-cdb3-4e66-8f71-d69ad65edf74 + - 0c004710-407c-43fd-a179-4c372802013c strict-transport-security: - max-age=31536000 transfer-encoding: @@ -41,7 +41,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000017E9"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008136"}}' x-ms-resource-unit: - '2' status: @@ -51,8 +51,8 @@ interactions: body: '{"displayName": "azure-cli-test000001", "identifierUris": ["api://azure-cli-test000001"], "isFallbackPublicClient": true, "signInAudience": "AzureADMultipleOrgs", "keyCredentials": [{"@odata.type": "#microsoft.graph.keyCredential", "displayName": null, "endDateTime": - "2023-05-06T06:52:59Z", "key": "MIIDazCCAlOgAwIBAgIUIp5vybhHfKN+ZKL28AntYKhlKXkwDQYJKoZIhvcNAQELBQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMDA3MjIwNzE3NDdaFw00NzEyMDgwNzE3NDdaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMa00H+/p4RP4Eo//1J81Wowo4y1SKOJHbJ6T/lZ735FzFX52gdQ/7HalJOwQdbha78RPGA7bXxEmyEo+q3w+IMYzrqboX5S9yf0v1DZvja/VEMtUsq79d7NUUEd+smkuqDxDHFIkMeMM8cXy6tc+TPbc28BkQQiKbzOEZDwy4HPd7FCqCwwcZtgxfxFQx5A2DkAXtT53zQD8k1zY4UQWhkKDcgvINzQfYxJmUbXqH27MuJuejhpWLjmwEFCQtMJMrEv44YmlDzmL64iN5HFckO65ikV9fe9g9EcR5acSY2bsO8WyFYzTffVXFpFF011Vi4d/U0h4wSwj5KLMYMHkfAgMBAAGjUzBRMB0GA1UdDgQWBBQxgpSKG7fwIHEopaRA10GB8Z8SOTAfBgNVHSMEGDAWgBQxgpSKG7fwIHEopaRA10GB8Z8SOTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAtI5vbHGxVV3qRtd9PEFe9dUb9Yv9YIa5RUd5l795cgr6qyELfg3xTPZbNf1oUHpGXNCfm1uqNTorIKOIEoTpA+STVwST/xcqzB6VjS31I/5IIrdK2NQenM+0DVJa+yGhX+zI3+X3cO2YbyLSKBYqdMsqgnMS/ZC0NnrvigHgq2SC4Vzg8yz5rorjvLJ6ndehtoWOtdCJKUTPihNh4e+GM2A7UNKdt5WKCiS/n/lShvm+8JEG2lXQmmxR6DOjdDyC4/6tf7Ln7YoZZ0q6ICp04oMF6bvgGosdOkQATW4X97EmcfIBfHPX2w/Xn47np2rZrlBMWCjI8gO6W8YQMu7AH", - "keyId": "36632c83-bb88-49e0-852c-e52eec6aa709", "startDateTime": "2022-05-07T06:52:59Z", + "2023-06-08T05:55:05Z", "key": "MIIDazCCAlOgAwIBAgIUIp5vybhHfKN+ZKL28AntYKhlKXkwDQYJKoZIhvcNAQELBQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMDA3MjIwNzE3NDdaFw00NzEyMDgwNzE3NDdaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMa00H+/p4RP4Eo//1J81Wowo4y1SKOJHbJ6T/lZ735FzFX52gdQ/7HalJOwQdbha78RPGA7bXxEmyEo+q3w+IMYzrqboX5S9yf0v1DZvja/VEMtUsq79d7NUUEd+smkuqDxDHFIkMeMM8cXy6tc+TPbc28BkQQiKbzOEZDwy4HPd7FCqCwwcZtgxfxFQx5A2DkAXtT53zQD8k1zY4UQWhkKDcgvINzQfYxJmUbXqH27MuJuejhpWLjmwEFCQtMJMrEv44YmlDzmL64iN5HFckO65ikV9fe9g9EcR5acSY2bsO8WyFYzTffVXFpFF011Vi4d/U0h4wSwj5KLMYMHkfAgMBAAGjUzBRMB0GA1UdDgQWBBQxgpSKG7fwIHEopaRA10GB8Z8SOTAfBgNVHSMEGDAWgBQxgpSKG7fwIHEopaRA10GB8Z8SOTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAtI5vbHGxVV3qRtd9PEFe9dUb9Yv9YIa5RUd5l795cgr6qyELfg3xTPZbNf1oUHpGXNCfm1uqNTorIKOIEoTpA+STVwST/xcqzB6VjS31I/5IIrdK2NQenM+0DVJa+yGhX+zI3+X3cO2YbyLSKBYqdMsqgnMS/ZC0NnrvigHgq2SC4Vzg8yz5rorjvLJ6ndehtoWOtdCJKUTPihNh4e+GM2A7UNKdt5WKCiS/n/lShvm+8JEG2lXQmmxR6DOjdDyC4/6tf7Ln7YoZZ0q6ICp04oMF6bvgGosdOkQATW4X97EmcfIBfHPX2w/Xn47np2rZrlBMWCjI8gO6W8YQMu7AH", + "keyId": "0042d742-d4ef-411d-83c7-ed6dfbb1d653", "startDateTime": "2022-06-09T05:55:05Z", "type": "AsymmetricX509Cert", "usage": "Verify"}], "web": {"homePageUrl": "https://myapp.com/", "redirectUris": ["http://localhost/webtest1", "http://localhost/webtest2"], "implicitGrantSettings": {"enableIdTokenIssuance": true, "enableAccessTokenIssuance": @@ -89,15 +89,15 @@ interactions: --web-home-page-url --web-redirect-uris --enable-access-token-issuance --enable-id-token-issuance --public-client-redirect-uris --key-value --app-roles --optional-claims --required-resource-accesses User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: POST uri: https://graph.microsoft.com/v1.0/applications response: body: string: '{"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#applications/$entity", - "id": "8345ee59-2090-481d-873e-3e16a368b482", "deletedDateTime": null, "appId": - "7ba7d5bd-5a88-4415-973d-5549f0764f16", "applicationTemplateId": null, "disabledByMicrosoftStatus": - null, "createdDateTime": "2022-05-07T06:53:00.4876927Z", "displayName": "azure-cli-test000001", + "id": "63e64527-fcfc-4b49-9620-12448f5c4ba6", "deletedDateTime": null, "appId": + "c603620f-3d35-453e-bcde-9f680b44a0f3", "applicationTemplateId": null, "disabledByMicrosoftStatus": + null, "createdDateTime": "2022-06-09T05:55:05.7090167Z", "displayName": "azure-cli-test000001", "description": null, "groupMembershipClaims": null, "identifierUris": ["api://azure-cli-test000001"], "isDeviceOnlyAuthSupported": null, "isFallbackPublicClient": true, "notes": null, "publisherDomain": "AzureSDKTeam.onmicrosoft.com", "serviceManagementReference": @@ -114,8 +114,8 @@ interactions: {"logoUrl": null, "marketingUrl": null, "privacyStatementUrl": null, "supportUrl": null, "termsOfServiceUrl": null}, "keyCredentials": [{"customKeyIdentifier": "7AB4DD9219E5E03ECC025136572DFAA262EC85CB", "displayName": "O=Internet Widgits - Pty Ltd, S=Some-State, C=AU", "endDateTime": "2023-05-06T06:52:59Z", "key": - null, "keyId": "36632c83-bb88-49e0-852c-e52eec6aa709", "startDateTime": "2022-05-07T06:52:59Z", + Pty Ltd, S=Some-State, C=AU", "endDateTime": "2023-06-08T05:55:05Z", "key": + null, "keyId": "0042d742-d4ef-411d-83c7-ed6dfbb1d653", "startDateTime": "2022-06-09T05:55:05Z", "type": "AsymmetricX509Cert", "usage": "Verify"}], "optionalClaims": {"accessToken": [{"additionalProperties": [], "essential": false, "name": "ipaddr", "source": null}], "idToken": [{"additionalProperties": [], "essential": false, "name": @@ -142,13 +142,13 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:00 GMT + - Thu, 09 Jun 2022 05:55:05 GMT location: - - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/8345ee59-2090-481d-873e-3e16a368b482/Microsoft.DirectoryServices.Application + - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/63e64527-fcfc-4b49-9620-12448f5c4ba6/Microsoft.DirectoryServices.Application odata-version: - '4.0' request-id: - - 2ecfaa07-aaf7-457a-8ea1-ff4846dd7c99 + - 99647b55-e9e3-44bc-a329-87c140b695c0 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -156,7 +156,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCE"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF000083A7"}}' x-ms-resource-unit: - '1' status: @@ -176,15 +176,15 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'7ba7d5bd-5a88-4415-973d-5549f0764f16' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'c603620f-3d35-453e-bcde-9f680b44a0f3' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"8345ee59-2090-481d-873e-3e16a368b482","deletedDateTime":null,"appId":"7ba7d5bd-5a88-4415-973d-5549f0764f16","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:00Z","displayName":"azure-cli-test000001","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000001"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":null,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"63e64527-fcfc-4b49-9620-12448f5c4ba6","deletedDateTime":null,"appId":"c603620f-3d35-453e-bcde-9f680b44a0f3","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:05Z","displayName":"azure-cli-test000001","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000001"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":null,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet - Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-05-06T06:52:59Z","key":null,"keyId":"36632c83-bb88-49e0-852c-e52eec6aa709","startDateTime":"2022-05-07T06:52:59Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:05Z","key":null,"keyId":"0042d742-d4ef-411d-83c7-ed6dfbb1d653","startDateTime":"2022-06-09T05:55:05Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -193,11 +193,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:00 GMT + - Thu, 09 Jun 2022 05:55:07 GMT odata-version: - '4.0' request-id: - - 84e52495-c19e-423b-a1e3-8406aeb03ef9 + - ceb0826b-0d41-4a91-975a-e466023350e3 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -205,7 +205,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D5"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008132"}}' x-ms-resource-unit: - '2' status: @@ -227,9 +227,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: DELETE - uri: https://graph.microsoft.com/v1.0/applications/8345ee59-2090-481d-873e-3e16a368b482 + uri: https://graph.microsoft.com/v1.0/applications/63e64527-fcfc-4b49-9620-12448f5c4ba6 response: body: string: '' @@ -237,13 +237,13 @@ interactions: cache-control: - no-cache date: - - Sat, 07 May 2022 06:53:07 GMT + - Thu, 09 Jun 2022 05:55:08 GMT request-id: - - 08e08aaf-82e3-4a11-9534-f95d4aa73a31 + - 426744cc-e102-4706-8a92-2678a3f3dcc0 strict-transport-security: - max-age=31536000 x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D4"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00005AD4"}}' x-ms-resource-unit: - '1' status: @@ -263,9 +263,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'7ba7d5bd-5a88-4415-973d-5549f0764f16' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'c603620f-3d35-453e-bcde-9f680b44a0f3' response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[]}' @@ -277,11 +277,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:07 GMT + - Thu, 09 Jun 2022 05:55:09 GMT odata-version: - '4.0' request-id: - - 4b31b39a-7861-48fe-a5ed-610dc738a6e6 + - a9a383d1-432c-441b-b97e-cd77027d4ad0 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -289,7 +289,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCC"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008135"}}' x-ms-resource-unit: - '2' status: @@ -309,13 +309,13 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/7ba7d5bd-5a88-4415-973d-5549f0764f16 + uri: https://graph.microsoft.com/v1.0/applications/c603620f-3d35-453e-bcde-9f680b44a0f3 response: body: - string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''7ba7d5bd-5a88-4415-973d-5549f0764f16'' - does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-05-07T06:53:08","request-id":"a64aec98-0c81-458b-a719-e9fd2868c8eb","client-request-id":"a64aec98-0c81-458b-a719-e9fd2868c8eb"}}}' + string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''c603620f-3d35-453e-bcde-9f680b44a0f3'' + does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-06-09T05:55:10","request-id":"55ad3e12-90f4-48a2-9fc8-e127d94b3468","client-request-id":"55ad3e12-90f4-48a2-9fc8-e127d94b3468"}}}' headers: cache-control: - no-cache @@ -324,9 +324,9 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 06:53:08 GMT + - Thu, 09 Jun 2022 05:55:10 GMT request-id: - - a64aec98-0c81-458b-a719-e9fd2868c8eb + - 55ad3e12-90f4-48a2-9fc8-e127d94b3468 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -334,7 +334,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCF"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008132"}}' x-ms-resource-unit: - '1' status: @@ -354,7 +354,7 @@ interactions: ParameterSetName: - --display-name User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET uri: https://graph.microsoft.com/v1.0/applications?$filter=startswith(displayName,'azure-cli-test000002') response: @@ -368,11 +368,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:08 GMT + - Thu, 09 Jun 2022 05:55:10 GMT odata-version: - '4.0' request-id: - - 6c52d68d-1fd1-4e52-83aa-ea9d52836fdd + - 23da0b50-21ff-490f-8bc4-0858ce291072 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -380,7 +380,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCF"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A46"}}' x-ms-resource-unit: - '2' status: @@ -404,15 +404,15 @@ interactions: ParameterSetName: - --display-name User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: POST uri: https://graph.microsoft.com/v1.0/applications response: body: string: '{"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#applications/$entity", - "id": "6140c544-dc27-4881-97f0-a8c704911198", "deletedDateTime": null, "appId": - "d726c939-613d-4335-98e9-2638a6103877", "applicationTemplateId": null, "disabledByMicrosoftStatus": - null, "createdDateTime": "2022-05-07T06:53:09.5694075Z", "displayName": "azure-cli-test000002", + "id": "fec5d7b5-eed3-41c1-8395-9f6d6f9acb17", "deletedDateTime": null, "appId": + "9ea29e9c-a202-40d6-ad70-d9404521cd49", "applicationTemplateId": null, "disabledByMicrosoftStatus": + null, "createdDateTime": "2022-06-09T05:55:12.4591047Z", "displayName": "azure-cli-test000002", "description": null, "groupMembershipClaims": null, "identifierUris": [], "isDeviceOnlyAuthSupported": null, "isFallbackPublicClient": null, "notes": null, "publisherDomain": "AzureSDKTeam.onmicrosoft.com", "serviceManagementReference": @@ -437,13 +437,13 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:11 GMT + - Thu, 09 Jun 2022 05:55:13 GMT location: - - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/6140c544-dc27-4881-97f0-a8c704911198/Microsoft.DirectoryServices.Application + - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17/Microsoft.DirectoryServices.Application odata-version: - '4.0' request-id: - - 2ca358a5-883d-4781-b575-6b2770965a49 + - 4f6b2f53-fd6e-423a-af61-0229dd45003c strict-transport-security: - max-age=31536000 transfer-encoding: @@ -451,7 +451,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1F"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A46"}}' x-ms-resource-unit: - '1' status: @@ -473,12 +473,12 @@ interactions: --web-redirect-uris --enable-access-token-issuance --enable-id-token-issuance --key-value --public-client-redirect-uris --app-roles --optional-claims --required-resource-accesses User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'd726c939-613d-4335-98e9-2638a6103877' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"6140c544-dc27-4881-97f0-a8c704911198","deletedDateTime":null,"appId":"d726c939-613d-4335-98e9-2638a6103877","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:09Z","displayName":"azure-cli-test000002","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000002","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -487,11 +487,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:12 GMT + - Thu, 09 Jun 2022 05:55:14 GMT odata-version: - '4.0' request-id: - - eee67bec-2c9f-4f4c-a9b4-8e2854a40c41 + - 1c36932e-7f03-4771-83d6-67c509a63fd3 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -499,7 +499,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCC"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00007865"}}' x-ms-resource-unit: - '2' status: @@ -521,12 +521,12 @@ interactions: --web-redirect-uris --enable-access-token-issuance --enable-id-token-issuance --key-value --public-client-redirect-uris --app-roles --optional-claims --required-resource-accesses User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/6140c544-dc27-4881-97f0-a8c704911198 + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications/$entity","id":"6140c544-dc27-4881-97f0-a8c704911198","deletedDateTime":null,"appId":"d726c939-613d-4335-98e9-2638a6103877","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:09Z","displayName":"azure-cli-test000002","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications/$entity","id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000002","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}' headers: cache-control: - no-cache @@ -535,11 +535,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:13 GMT + - Thu, 09 Jun 2022 05:55:15 GMT odata-version: - '4.0' request-id: - - 30258870-1ce7-4bfa-962e-1d779d2d933d + - 42bb2d6c-90b9-4046-8126-96a65959578e strict-transport-security: - max-age=31536000 transfer-encoding: @@ -547,7 +547,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000018C8"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A46"}}' x-ms-resource-unit: - '1' status: @@ -569,12 +569,12 @@ interactions: --web-redirect-uris --enable-access-token-issuance --enable-id-token-issuance --key-value --public-client-redirect-uris --app-roles --optional-claims --required-resource-accesses User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'd726c939-613d-4335-98e9-2638a6103877' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"6140c544-dc27-4881-97f0-a8c704911198","deletedDateTime":null,"appId":"d726c939-613d-4335-98e9-2638a6103877","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:09Z","displayName":"azure-cli-test000002","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000002","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -583,11 +583,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:14 GMT + - Thu, 09 Jun 2022 05:55:17 GMT odata-version: - '4.0' request-id: - - 28697d5d-53c3-4991-8ad2-440c0313495b + - 8439d003-11bb-4765-888b-cb0e7a4c4109 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -595,7 +595,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000153F"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF0000812D"}}' x-ms-resource-unit: - '2' status: @@ -604,8 +604,8 @@ interactions: - request: body: '{"displayName": "azure-cli-test000003", "identifierUris": ["api://azure-cli-test000003"], "isFallbackPublicClient": true, "keyCredentials": [{"@odata.type": "#microsoft.graph.keyCredential", - "displayName": null, "endDateTime": "2023-05-06T06:53:13Z", "key": "MIIDazCCAlOgAwIBAgIUIp5vybhHfKN+ZKL28AntYKhlKXkwDQYJKoZIhvcNAQELBQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMDA3MjIwNzE3NDdaFw00NzEyMDgwNzE3NDdaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMa00H+/p4RP4Eo//1J81Wowo4y1SKOJHbJ6T/lZ735FzFX52gdQ/7HalJOwQdbha78RPGA7bXxEmyEo+q3w+IMYzrqboX5S9yf0v1DZvja/VEMtUsq79d7NUUEd+smkuqDxDHFIkMeMM8cXy6tc+TPbc28BkQQiKbzOEZDwy4HPd7FCqCwwcZtgxfxFQx5A2DkAXtT53zQD8k1zY4UQWhkKDcgvINzQfYxJmUbXqH27MuJuejhpWLjmwEFCQtMJMrEv44YmlDzmL64iN5HFckO65ikV9fe9g9EcR5acSY2bsO8WyFYzTffVXFpFF011Vi4d/U0h4wSwj5KLMYMHkfAgMBAAGjUzBRMB0GA1UdDgQWBBQxgpSKG7fwIHEopaRA10GB8Z8SOTAfBgNVHSMEGDAWgBQxgpSKG7fwIHEopaRA10GB8Z8SOTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAtI5vbHGxVV3qRtd9PEFe9dUb9Yv9YIa5RUd5l795cgr6qyELfg3xTPZbNf1oUHpGXNCfm1uqNTorIKOIEoTpA+STVwST/xcqzB6VjS31I/5IIrdK2NQenM+0DVJa+yGhX+zI3+X3cO2YbyLSKBYqdMsqgnMS/ZC0NnrvigHgq2SC4Vzg8yz5rorjvLJ6ndehtoWOtdCJKUTPihNh4e+GM2A7UNKdt5WKCiS/n/lShvm+8JEG2lXQmmxR6DOjdDyC4/6tf7Ln7YoZZ0q6ICp04oMF6bvgGosdOkQATW4X97EmcfIBfHPX2w/Xn47np2rZrlBMWCjI8gO6W8YQMu7AH", - "keyId": "5ee8731c-1e4d-4be3-b379-ef3633ace700", "startDateTime": "2022-05-07T06:53:13Z", + "displayName": null, "endDateTime": "2023-06-08T05:55:17Z", "key": "MIIDazCCAlOgAwIBAgIUIp5vybhHfKN+ZKL28AntYKhlKXkwDQYJKoZIhvcNAQELBQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMDA3MjIwNzE3NDdaFw00NzEyMDgwNzE3NDdaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMa00H+/p4RP4Eo//1J81Wowo4y1SKOJHbJ6T/lZ735FzFX52gdQ/7HalJOwQdbha78RPGA7bXxEmyEo+q3w+IMYzrqboX5S9yf0v1DZvja/VEMtUsq79d7NUUEd+smkuqDxDHFIkMeMM8cXy6tc+TPbc28BkQQiKbzOEZDwy4HPd7FCqCwwcZtgxfxFQx5A2DkAXtT53zQD8k1zY4UQWhkKDcgvINzQfYxJmUbXqH27MuJuejhpWLjmwEFCQtMJMrEv44YmlDzmL64iN5HFckO65ikV9fe9g9EcR5acSY2bsO8WyFYzTffVXFpFF011Vi4d/U0h4wSwj5KLMYMHkfAgMBAAGjUzBRMB0GA1UdDgQWBBQxgpSKG7fwIHEopaRA10GB8Z8SOTAfBgNVHSMEGDAWgBQxgpSKG7fwIHEopaRA10GB8Z8SOTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAtI5vbHGxVV3qRtd9PEFe9dUb9Yv9YIa5RUd5l795cgr6qyELfg3xTPZbNf1oUHpGXNCfm1uqNTorIKOIEoTpA+STVwST/xcqzB6VjS31I/5IIrdK2NQenM+0DVJa+yGhX+zI3+X3cO2YbyLSKBYqdMsqgnMS/ZC0NnrvigHgq2SC4Vzg8yz5rorjvLJ6ndehtoWOtdCJKUTPihNh4e+GM2A7UNKdt5WKCiS/n/lShvm+8JEG2lXQmmxR6DOjdDyC4/6tf7Ln7YoZZ0q6ICp04oMF6bvgGosdOkQATW4X97EmcfIBfHPX2w/Xn47np2rZrlBMWCjI8gO6W8YQMu7AH", + "keyId": "eee0bc39-e932-452a-b16e-8c4f4a670ec9", "startDateTime": "2022-06-09T05:55:17Z", "type": "AsymmetricX509Cert", "usage": "Verify"}], "web": {"homePageUrl": "https://myapp.com/", "redirectUris": ["http://localhost/webtest1", "http://localhost/webtest2"], "implicitGrantSettings": {"enableIdTokenIssuance": true, "enableAccessTokenIssuance": @@ -642,9 +642,9 @@ interactions: --web-redirect-uris --enable-access-token-issuance --enable-id-token-issuance --key-value --public-client-redirect-uris --app-roles --optional-claims --required-resource-accesses User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: PATCH - uri: https://graph.microsoft.com/v1.0/applications/6140c544-dc27-4881-97f0-a8c704911198 + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 response: body: string: '' @@ -652,13 +652,13 @@ interactions: cache-control: - no-cache date: - - Sat, 07 May 2022 06:53:17 GMT + - Thu, 09 Jun 2022 05:55:19 GMT request-id: - - 4209d670-c00c-433d-86f5-3b6be4839f9c + - 716c5fbc-d636-4268-ac29-f3c4f56a281a strict-transport-security: - max-age=31536000 x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000153F"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF000083AA"}}' x-ms-resource-unit: - '1' status: @@ -678,15 +678,15 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'd726c939-613d-4335-98e9-2638a6103877' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"6140c544-dc27-4881-97f0-a8c704911198","deletedDateTime":null,"appId":"d726c939-613d-4335-98e9-2638a6103877","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:09Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet - Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-05-06T06:53:13Z","key":null,"keyId":"5ee8731c-1e4d-4be3-b379-ef3633ace700","startDateTime":"2022-05-07T06:53:13Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -695,11 +695,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:17 GMT + - Thu, 09 Jun 2022 05:55:20 GMT odata-version: - '4.0' request-id: - - f87f782f-ed65-4a90-ab72-100cb3e48344 + - 8bfcdf1a-b150-4e45-814c-2823df21a7ed strict-transport-security: - max-age=31536000 transfer-encoding: @@ -707,7 +707,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000163A"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A46"}}' x-ms-resource-unit: - '2' status: @@ -727,15 +727,15 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/6140c544-dc27-4881-97f0-a8c704911198 + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications/$entity","id":"6140c544-dc27-4881-97f0-a8c704911198","deletedDateTime":null,"appId":"d726c939-613d-4335-98e9-2638a6103877","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:09Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications/$entity","id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet - Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-05-06T06:53:13Z","key":null,"keyId":"5ee8731c-1e4d-4be3-b379-ef3633ace700","startDateTime":"2022-05-07T06:53:13Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}' + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}' headers: cache-control: - no-cache @@ -744,11 +744,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:17 GMT + - Thu, 09 Jun 2022 05:55:21 GMT odata-version: - '4.0' request-id: - - 83a69a07-d721-4552-b03c-67133d8ab5a0 + - 33794407-7df9-48f9-89c5-e3d6ffa66b91 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -756,7 +756,292 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1E"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A47"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app update + Connection: + - keep-alive + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers + Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '3135' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:55:22 GMT + odata-version: + - '4.0' + request-id: + - cb71b8e1-49b3-4050-a2c1-7cea0b168d3b + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00005D69"}}' + x-ms-resource-unit: + - '2' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app update + Connection: + - keep-alive + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications/$entity","id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers + Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '3131' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:55:22 GMT + odata-version: + - '4.0' + request-id: + - 88f9d4e5-db5b-4779-90f8-eb6076562e57 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A30"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app update + Connection: + - keep-alive + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers + Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '3135' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:55:24 GMT + odata-version: + - '4.0' + request-id: + - dce26825-63f5-49d0-b174-f505a5c02fd6 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008131"}}' + x-ms-resource-unit: + - '2' + status: + code: 200 + message: OK +- request: + body: '{"isDeviceOnlyAuthSupported": true}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app update + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: PATCH + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Thu, 09 Jun 2022 05:55:27 GMT + request-id: + - a7d00cc8-5ea3-43ed-b316-e4d07f2aade8 + strict-transport-security: + - max-age=31536000 + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002526"}}' + x-ms-resource-unit: + - '1' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":true,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers + Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '3135' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:55:27 GMT + odata-version: + - '4.0' + request-id: + - 2da2dedb-bd9c-46d4-92b1-c8813781626b + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002EBB"}}' + x-ms-resource-unit: + - '2' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications/$entity","id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":true,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers + Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '3131' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:55:28 GMT + odata-version: + - '4.0' + request-id: + - c824a7c7-0a55-45f4-9d45-d2eccad53f07 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002EBC"}}' x-ms-resource-unit: - '1' status: @@ -776,15 +1061,15 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'd726c939-613d-4335-98e9-2638a6103877' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"6140c544-dc27-4881-97f0-a8c704911198","deletedDateTime":null,"appId":"d726c939-613d-4335-98e9-2638a6103877","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:09Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"fec5d7b5-eed3-41c1-8395-9f6d6f9acb17","deletedDateTime":null,"appId":"9ea29e9c-a202-40d6-ad70-d9404521cd49","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:55:12Z","displayName":"azure-cli-test000003","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000003"],"isDeviceOnlyAuthSupported":true,"isFallbackPublicClient":true,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[{"allowedMemberTypes":["Application"],"description":"Consumer apps have access to the consumer data.","displayName":"ConsumerApps","id":"47fbb575-0000-0000-0000-0f7a6c30beac","isEnabled":true,"origin":"Application","value":"Consumer"},{"allowedMemberTypes":["User"],"description":"Writers Have the ability to create tasks.","displayName":"Writer","id":"d1c2ade8-0000-0000-0000-6d06b947c66f","isEnabled":true,"origin":"Application","value":"Writer"}],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[{"customKeyIdentifier":"7AB4DD9219E5E03ECC025136572DFAA262EC85CB","displayName":"O=Internet - Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-05-06T06:53:13Z","key":null,"keyId":"5ee8731c-1e4d-4be3-b379-ef3633ace700","startDateTime":"2022-05-07T06:53:13Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' + Widgits Pty Ltd, S=Some-State, C=AU","endDateTime":"2023-06-08T05:55:17Z","key":null,"keyId":"eee0bc39-e932-452a-b16e-8c4f4a670ec9","startDateTime":"2022-06-09T05:55:17Z","type":"AsymmetricX509Cert","usage":"Verify"}],"optionalClaims":{"accessToken":[{"additionalProperties":[],"essential":false,"name":"ipaddr","source":null}],"idToken":[{"additionalProperties":[],"essential":false,"name":"auth_time","source":null}],"saml2Token":[{"additionalProperties":[],"essential":false,"name":"upn","source":null},{"additionalProperties":[],"essential":false,"name":"extension_ab603c56068041afb2f6832e2a17e237_skypeId","source":"user"}]},"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":["http://localhost/publicclienttest2","http://localhost/publicclienttest1"]},"requiredResourceAccess":[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"c79f8feb-a9db-4090-85f9-90d820caa0eb","type":"Scope"},{"id":"18a4783c-866b-4cc7-a460-3d5e5662c884","type":"Role"}]},{"resourceAppId":"797f4846-ba00-4fd7-ba43-dac1f8f63013","resourceAccess":[{"id":"41094075-9dad-400e-a0bd-54e686782033","type":"Scope"}]}],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":"https://myapp.com/","logoutUrl":null,"redirectUris":["http://localhost/webtest2","http://localhost/webtest1"],"implicitGrantSettings":{"enableAccessTokenIssuance":true,"enableIdTokenIssuance":true}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -793,11 +1078,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:18 GMT + - Thu, 09 Jun 2022 05:55:30 GMT odata-version: - '4.0' request-id: - - fbb1fa0f-f75e-45d2-8b5c-b6329d88feae + - f1adfd5e-1250-4dd0-8ead-6d147b9cdf90 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -805,7 +1090,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1D"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002016"}}' x-ms-resource-unit: - '2' status: @@ -827,9 +1112,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: DELETE - uri: https://graph.microsoft.com/v1.0/applications/6140c544-dc27-4881-97f0-a8c704911198 + uri: https://graph.microsoft.com/v1.0/applications/fec5d7b5-eed3-41c1-8395-9f6d6f9acb17 response: body: string: '' @@ -837,13 +1122,13 @@ interactions: cache-control: - no-cache date: - - Sat, 07 May 2022 06:53:25 GMT + - Thu, 09 Jun 2022 05:55:33 GMT request-id: - - c8a84237-86ca-4bd1-b461-4fa3b736cf57 + - 03804865-62f7-4d92-8c05-0709f716746e strict-transport-security: - max-age=31536000 x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D3"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000028EC"}}' x-ms-resource-unit: - '1' status: @@ -863,9 +1148,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'd726c939-613d-4335-98e9-2638a6103877' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[]}' @@ -877,11 +1162,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:25 GMT + - Thu, 09 Jun 2022 05:55:34 GMT odata-version: - '4.0' request-id: - - 3cf96aef-34d9-4989-9940-4b23616ecaba + - fb363197-4b09-4e47-a850-26bc8906dbff strict-transport-security: - max-age=31536000 transfer-encoding: @@ -889,7 +1174,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1D"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF0000318A"}}' x-ms-resource-unit: - '2' status: @@ -909,13 +1194,13 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/d726c939-613d-4335-98e9-2638a6103877 + uri: https://graph.microsoft.com/v1.0/applications/9ea29e9c-a202-40d6-ad70-d9404521cd49 response: body: - string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''d726c939-613d-4335-98e9-2638a6103877'' - does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-05-07T06:53:26","request-id":"e7507d88-9c18-4a2c-b503-a8335246fac1","client-request-id":"e7507d88-9c18-4a2c-b503-a8335246fac1"}}}' + string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''9ea29e9c-a202-40d6-ad70-d9404521cd49'' + does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-06-09T05:55:36","request-id":"b9bb3bf1-9183-4cc6-bed9-63c543949d11","client-request-id":"b9bb3bf1-9183-4cc6-bed9-63c543949d11"}}}' headers: cache-control: - no-cache @@ -924,9 +1209,9 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 06:53:26 GMT + - Thu, 09 Jun 2022 05:55:35 GMT request-id: - - e7507d88-9c18-4a2c-b503-a8335246fac1 + - b9bb3bf1-9183-4cc6-bed9-63c543949d11 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -934,7 +1219,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D5"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00001309"}}' x-ms-resource-unit: - '1' status: @@ -954,9 +1239,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'd726c939-613d-4335-98e9-2638a6103877' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'9ea29e9c-a202-40d6-ad70-d9404521cd49' response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[]}' @@ -968,11 +1253,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:26 GMT + - Thu, 09 Jun 2022 05:55:36 GMT odata-version: - '4.0' request-id: - - a3a1c540-a179-49a5-8ab2-f90821253ae5 + - 2ad2f560-d64f-4cf4-8486-5d4ac4b3e8b4 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -980,7 +1265,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D6"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF0000252C"}}' x-ms-resource-unit: - '2' status: @@ -1000,13 +1285,13 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/d726c939-613d-4335-98e9-2638a6103877 + uri: https://graph.microsoft.com/v1.0/applications/9ea29e9c-a202-40d6-ad70-d9404521cd49 response: body: - string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''d726c939-613d-4335-98e9-2638a6103877'' - does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-05-07T06:53:27","request-id":"fc473add-365e-4fb5-a04c-f3436542726f","client-request-id":"fc473add-365e-4fb5-a04c-f3436542726f"}}}' + string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''9ea29e9c-a202-40d6-ad70-d9404521cd49'' + does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-06-09T05:55:37","request-id":"46c4f580-52e3-48e1-9f3d-46139b9379f3","client-request-id":"46c4f580-52e3-48e1-9f3d-46139b9379f3"}}}' headers: cache-control: - no-cache @@ -1015,9 +1300,9 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 06:53:27 GMT + - Thu, 09 Jun 2022 05:55:37 GMT request-id: - - fc473add-365e-4fb5-a04c-f3436542726f + - 46c4f580-52e3-48e1-9f3d-46139b9379f3 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1025,7 +1310,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000018C7"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002526"}}' x-ms-resource-unit: - '1' status: diff --git a/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_service_principal_scenario.yaml b/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_service_principal_scenario.yaml index 0d14fa0021e..a6e0519a9be 100644 --- a/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_service_principal_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/role/tests/latest/recordings/test_service_principal_scenario.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - --display-name --identifier-uris User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET uri: https://graph.microsoft.com/v1.0/applications?$filter=startswith(displayName,'azure-cli-test000001') response: @@ -27,11 +27,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:33 GMT + - Thu, 09 Jun 2022 05:47:34 GMT odata-version: - '4.0' request-id: - - ef140e5f-e72b-4b79-83cd-0390d30aa6b6 + - bad7429e-f35c-4ea5-8587-5f71d1f3fefc strict-transport-security: - max-age=31536000 transfer-encoding: @@ -39,7 +39,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001642"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001640"}}' x-ms-resource-unit: - '2' status: @@ -64,15 +64,15 @@ interactions: ParameterSetName: - --display-name --identifier-uris User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: POST uri: https://graph.microsoft.com/v1.0/applications response: body: string: '{"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#applications/$entity", - "id": "538f330b-e6cf-4492-b91d-d773892962b1", "deletedDateTime": null, "appId": - "5a512f68-af7f-4e8b-b7d4-19f3ea7372db", "applicationTemplateId": null, "disabledByMicrosoftStatus": - null, "createdDateTime": "2022-05-07T06:53:34.8973931Z", "displayName": "azure-cli-test000001", + "id": "497434e7-c384-45d3-ac72-f7de210d6ca3", "deletedDateTime": null, "appId": + "4faba265-b3a0-4bfd-8f56-f8a1a0cee277", "applicationTemplateId": null, "disabledByMicrosoftStatus": + null, "createdDateTime": "2022-06-09T05:47:37.1586154Z", "displayName": "azure-cli-test000001", "description": null, "groupMembershipClaims": null, "identifierUris": ["api://azure-cli-test000001"], "isDeviceOnlyAuthSupported": null, "isFallbackPublicClient": null, "notes": null, "publisherDomain": "AzureSDKTeam.onmicrosoft.com", "serviceManagementReference": @@ -97,13 +97,13 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:35 GMT + - Thu, 09 Jun 2022 05:47:38 GMT location: - - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/538f330b-e6cf-4492-b91d-d773892962b1/Microsoft.DirectoryServices.Application + - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/497434e7-c384-45d3-ac72-f7de210d6ca3/Microsoft.DirectoryServices.Application odata-version: - '4.0' request-id: - - 97830507-d420-415e-973c-f49e637ba6e4 + - 77a71246-111f-4f51-9ecd-bd2c6ffdf49a strict-transport-security: - max-age=31536000 transfer-encoding: @@ -111,7 +111,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001640"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000163A"}}' x-ms-resource-unit: - '1' status: @@ -131,12 +131,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"538f330b-e6cf-4492-b91d-d773892962b1","deletedDateTime":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:34Z","displayName":"azure-cli-test000001","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000001"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"497434e7-c384-45d3-ac72-f7de210d6ca3","deletedDateTime":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:47:37Z","displayName":"azure-cli-test000001","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000001"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -145,11 +145,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:35 GMT + - Thu, 09 Jun 2022 05:47:39 GMT odata-version: - '4.0' request-id: - - a42037db-4523-479d-91c2-dac0a5188fb6 + - 1894ed72-fea1-488c-9bc1-153a5455e6c7 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -157,14 +157,14 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1E"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1F"}}' x-ms-resource-unit: - '2' status: code: 200 message: OK - request: - body: '{"appId": "5a512f68-af7f-4e8b-b7d4-19f3ea7372db", "accountEnabled": true}' + body: '{"appId": "4faba265-b3a0-4bfd-8f56-f8a1a0cee277", "accountEnabled": true}' headers: Accept: - '*/*' @@ -181,12 +181,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: POST uri: https://graph.microsoft.com/v1.0/servicePrincipals response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["5a512f68-af7f-4e8b-b7d4-19f3ea7372db","api://azure-cli-test000001"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["4faba265-b3a0-4bfd-8f56-f8a1a0cee277","api://azure-cli-test000001"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' headers: cache-control: - no-cache @@ -195,13 +195,13 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:36 GMT + - Thu, 09 Jun 2022 05:47:40 GMT location: - - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74/Microsoft.DirectoryServices.ServicePrincipal + - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d/Microsoft.DirectoryServices.ServicePrincipal odata-version: - '4.0' request-id: - - 07d79088-c26b-45b4-9cf0-9a35400ae21f + - d50dcd0a-4393-4671-b074-d78f9730054b strict-transport-security: - max-age=31536000 transfer-encoding: @@ -209,7 +209,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCC"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000163A"}}' x-ms-resource-unit: - '1' status: @@ -229,12 +229,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db') + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277') response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","5a512f68-af7f-4e8b-b7d4-19f3ea7372db"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' headers: cache-control: - no-cache @@ -243,11 +243,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:36 GMT + - Thu, 09 Jun 2022 05:47:40 GMT odata-version: - '4.0' request-id: - - 52678797-4747-4a6f-adc3-4d3f5109d1fb + - 3b596951-e22c-4ec3-b900-54f7d392f418 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -255,7 +255,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001642"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1D"}}' x-ms-resource-unit: - '1' status: @@ -275,12 +275,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals/45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74 + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","5a512f68-af7f-4e8b-b7d4-19f3ea7372db"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' headers: cache-control: - no-cache @@ -289,11 +289,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:37 GMT + - Thu, 09 Jun 2022 05:47:41 GMT odata-version: - '4.0' request-id: - - f48e048c-13f1-4a5a-88d5-43b66371d488 + - 877719e1-3661-4bc2-9359-917084901aa2 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -301,7 +301,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1F"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00002335"}}' x-ms-resource-unit: - '1' status: @@ -321,12 +321,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'api://azure-cli-test000001') response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","5a512f68-af7f-4e8b-b7d4-19f3ea7372db"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' headers: cache-control: - no-cache @@ -335,11 +335,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:38 GMT + - Thu, 09 Jun 2022 05:47:42 GMT odata-version: - '4.0' request-id: - - e48a038e-d070-4287-ab0b-15cfd392495b + - 2aeb0cf6-75c3-45d8-acc8-7dd34d524690 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -347,7 +347,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC8"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D3"}}' x-ms-resource-unit: - '1' status: @@ -367,12 +367,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals/45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74 + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","5a512f68-af7f-4e8b-b7d4-19f3ea7372db"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' headers: cache-control: - no-cache @@ -381,11 +381,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:39 GMT + - Thu, 09 Jun 2022 05:47:43 GMT odata-version: - '4.0' request-id: - - 6ced0270-8495-40a2-b145-e3685991f624 + - cdc5f976-8ad9-46b7-afeb-a005f0baafaf strict-transport-security: - max-age=31536000 transfer-encoding: @@ -393,7 +393,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001640"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00002335"}}' x-ms-resource-unit: - '1' status: @@ -413,9 +413,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74') + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'0d380b48-63eb-4a1b-8023-a5af7aaf2f6d') response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' @@ -427,11 +427,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:39 GMT + - Thu, 09 Jun 2022 05:47:45 GMT odata-version: - '4.0' request-id: - - 3221167a-def2-4f00-9dba-06aff9e6012a + - 78033b93-6393-41f6-b4cd-e06fc18dde53 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -439,7 +439,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D9"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D5"}}' x-ms-resource-unit: - '1' status: @@ -459,12 +459,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals/45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74 + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","5a512f68-af7f-4e8b-b7d4-19f3ea7372db"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' headers: cache-control: - no-cache @@ -473,11 +473,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:40 GMT + - Thu, 09 Jun 2022 05:47:46 GMT odata-version: - '4.0' request-id: - - 7cf73154-5d7d-49f5-a543-0748a09b0b0a + - bfdc7065-29f9-41dc-bcde-6c5b55397620 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -485,7 +485,277 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001640"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000023FC"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad sp update + Connection: + - keep-alive + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'0d380b48-63eb-4a1b-8023-a5af7aaf2f6d') + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '92' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:47:48 GMT + odata-version: + - '4.0' + request-id: + - f5359b46-2477-4a6c-a907-43761a79bc28 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC8"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad sp update + Connection: + - keep-alive + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' + headers: + cache-control: + - no-cache + content-length: + - '1351' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:47:50 GMT + odata-version: + - '4.0' + request-id: + - 1791f890-8da8-43ba-b303-85072cd3dd7f + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC8"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad sp update + Connection: + - keep-alive + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'0d380b48-63eb-4a1b-8023-a5af7aaf2f6d') + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '92' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:47:52 GMT + odata-version: + - '4.0' + request-id: + - 59d19b4f-ef30-4277-be63-cce720cb400d + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1E"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"appRoleAssignmentRequired": true}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad sp update + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + ParameterSetName: + - --id --set + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: PATCH + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Thu, 09 Jun 2022 05:47:54 GMT + request-id: + - 44fc6b40-ade9-4cb4-b4e6-5d9bbc232426 + strict-transport-security: + - max-age=31536000 + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000023FA"}}' + x-ms-resource-unit: + - '1' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad sp show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'0d380b48-63eb-4a1b-8023-a5af7aaf2f6d') + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '92' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:47:55 GMT + odata-version: + - '4.0' + request-id: + - 80f6bbf8-21c5-4e93-a83c-6dd4cef594c0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001643"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad sp show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity","id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":true,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}' + headers: + cache-control: + - no-cache + content-length: + - '1350' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 09 Jun 2022 05:47:56 GMT + odata-version: + - '4.0' + request-id: + - fb0db43b-d314-438e-91e9-8a7b18ba68fb + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCE"}}' x-ms-resource-unit: - '1' status: @@ -505,25 +775,25 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db') + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277') response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"createdDateTime":"2022-05-07T06:53:37Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","5a512f68-af7f-4e8b-b7d4-19f3ea7372db"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"0d380b48-63eb-4a1b-8023-a5af7aaf2f6d","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"azure-cli-test000001","appDescription":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"appOwnerOrganizationId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":true,"createdDateTime":"2022-06-09T05:47:40Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"azure-cli-test000001","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["api://azure-cli-test000001","4faba265-b3a0-4bfd-8f56-f8a1a0cee277"],"servicePrincipalType":"Application","signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' headers: cache-control: - no-cache content-length: - - '1355' + - '1354' content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:41 GMT + - Thu, 09 Jun 2022 05:47:56 GMT odata-version: - '4.0' request-id: - - dad4af53-6b38-41cd-9a1c-fef22f8f1c44 + - e2fcd3f3-b0af-4e94-ab8e-d8cf53c0a1c8 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -531,7 +801,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000153F"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC8"}}' x-ms-resource-unit: - '1' status: @@ -553,9 +823,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: DELETE - uri: https://graph.microsoft.com/v1.0/servicePrincipals/45e0a0cf-92d7-4ea9-8a44-0e84fae7aa74 + uri: https://graph.microsoft.com/v1.0/servicePrincipals/0d380b48-63eb-4a1b-8023-a5af7aaf2f6d response: body: string: '' @@ -563,13 +833,13 @@ interactions: cache-control: - no-cache date: - - Sat, 07 May 2022 06:53:41 GMT + - Thu, 09 Jun 2022 05:47:59 GMT request-id: - - b8adc657-5cfc-4865-9782-aac8db10a518 + - e4da0c32-0736-46ae-940a-c941c4cd66d6 strict-transport-security: - max-age=31536000 x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D4"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D3"}}' x-ms-resource-unit: - '1' status: @@ -589,12 +859,12 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277' response: body: - string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"538f330b-e6cf-4492-b91d-d773892962b1","deletedDateTime":null,"appId":"5a512f68-af7f-4e8b-b7d4-19f3ea7372db","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-05-07T06:53:34Z","displayName":"azure-cli-test000001","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000001"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"497434e7-c384-45d3-ac72-f7de210d6ca3","deletedDateTime":null,"appId":"4faba265-b3a0-4bfd-8f56-f8a1a0cee277","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-09T05:47:37Z","displayName":"azure-cli-test000001","description":null,"groupMembershipClaims":null,"identifierUris":["api://azure-cli-test000001"],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' headers: cache-control: - no-cache @@ -603,11 +873,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:41 GMT + - Thu, 09 Jun 2022 05:47:59 GMT odata-version: - '4.0' request-id: - - 72f27e19-7e62-4219-9f08-89da24ed89fa + - 42d7b0c5-a07e-40aa-b2ab-883a5ac73aae strict-transport-security: - max-age=31536000 transfer-encoding: @@ -637,9 +907,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: DELETE - uri: https://graph.microsoft.com/v1.0/applications/538f330b-e6cf-4492-b91d-d773892962b1 + uri: https://graph.microsoft.com/v1.0/applications/497434e7-c384-45d3-ac72-f7de210d6ca3 response: body: string: '' @@ -647,13 +917,13 @@ interactions: cache-control: - no-cache date: - - Sat, 07 May 2022 06:53:42 GMT + - Thu, 09 Jun 2022 05:48:01 GMT request-id: - - 01f73a22-ca75-4c37-9f64-44c07b922d2e + - 8ed69f9c-7527-4cd5-8911-4bf1e70c93b0 strict-transport-security: - max-age=31536000 x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC8"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF0000163A"}}' x-ms-resource-unit: - '1' status: @@ -673,9 +943,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db') + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277') response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' @@ -687,11 +957,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:43 GMT + - Thu, 09 Jun 2022 05:48:02 GMT odata-version: - '4.0' request-id: - - 67d4ba91-09c8-4e2d-90c2-633c0b8ebc3c + - 7217af9e-66b1-48c2-9725-d5908f6f29fe strict-transport-security: - max-age=31536000 transfer-encoding: @@ -699,7 +969,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCF"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000018C8"}}' x-ms-resource-unit: - '1' status: @@ -719,13 +989,13 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals/5a512f68-af7f-4e8b-b7d4-19f3ea7372db + uri: https://graph.microsoft.com/v1.0/servicePrincipals/4faba265-b3a0-4bfd-8f56-f8a1a0cee277 response: body: - string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''5a512f68-af7f-4e8b-b7d4-19f3ea7372db'' - does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-05-07T06:53:44","request-id":"7907f59f-0713-4a2f-ac26-48190d96e2fa","client-request-id":"7907f59f-0713-4a2f-ac26-48190d96e2fa"}}}' + string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''4faba265-b3a0-4bfd-8f56-f8a1a0cee277'' + does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-06-09T05:48:04","request-id":"f5a70358-7c02-41d9-8464-bcb1c559076a","client-request-id":"f5a70358-7c02-41d9-8464-bcb1c559076a"}}}' headers: cache-control: - no-cache @@ -734,9 +1004,9 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 06:53:43 GMT + - Thu, 09 Jun 2022 05:48:04 GMT request-id: - - 7907f59f-0713-4a2f-ac26-48190d96e2fa + - f5a70358-7c02-41d9-8464-bcb1c559076a strict-transport-security: - max-age=31536000 transfer-encoding: @@ -744,7 +1014,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCC"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00002336"}}' x-ms-resource-unit: - '1' status: @@ -764,9 +1034,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277' response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[]}' @@ -778,11 +1048,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:44 GMT + - Thu, 09 Jun 2022 05:48:04 GMT odata-version: - '4.0' request-id: - - 14578b94-1d5c-4a83-b6db-53b39a8bf96d + - 28c1a952-dea0-4174-8a06-c11973d1f754 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -790,7 +1060,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D3"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00002335"}}' x-ms-resource-unit: - '2' status: @@ -810,13 +1080,13 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/5a512f68-af7f-4e8b-b7d4-19f3ea7372db + uri: https://graph.microsoft.com/v1.0/applications/4faba265-b3a0-4bfd-8f56-f8a1a0cee277 response: body: - string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''5a512f68-af7f-4e8b-b7d4-19f3ea7372db'' - does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-05-07T06:53:45","request-id":"534050b0-70a2-41e4-8159-bbe3f5e0ed03","client-request-id":"534050b0-70a2-41e4-8159-bbe3f5e0ed03"}}}' + string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''4faba265-b3a0-4bfd-8f56-f8a1a0cee277'' + does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-06-09T05:48:06","request-id":"45062156-266b-46ab-ad31-4f8dc96471db","client-request-id":"45062156-266b-46ab-ad31-4f8dc96471db"}}}' headers: cache-control: - no-cache @@ -825,9 +1095,9 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 06:53:44 GMT + - Thu, 09 Jun 2022 05:48:05 GMT request-id: - - 534050b0-70a2-41e4-8159-bbe3f5e0ed03 + - 45062156-266b-46ab-ad31-4f8dc96471db strict-transport-security: - max-age=31536000 transfer-encoding: @@ -835,7 +1105,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D4"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC8"}}' x-ms-resource-unit: - '1' status: @@ -855,9 +1125,9 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'5a512f68-af7f-4e8b-b7d4-19f3ea7372db' + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20'4faba265-b3a0-4bfd-8f56-f8a1a0cee277' response: body: string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[]}' @@ -869,11 +1139,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Sat, 07 May 2022 06:53:45 GMT + - Thu, 09 Jun 2022 05:48:07 GMT odata-version: - '4.0' request-id: - - 59045fb0-527d-4b44-a8ad-6c8b3342d87f + - 6d8bf0d6-5e93-4814-bf24-41b54c788cda strict-transport-security: - max-age=31536000 transfer-encoding: @@ -881,7 +1151,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D5"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCE"}}' x-ms-resource-unit: - '2' status: @@ -901,13 +1171,13 @@ interactions: ParameterSetName: - --id User-Agent: - - python/3.10.4 (Windows-10-10.0.19044-SP0) AZURECLI/2.35.0 + - python/3.10.4 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/applications/5a512f68-af7f-4e8b-b7d4-19f3ea7372db + uri: https://graph.microsoft.com/v1.0/applications/4faba265-b3a0-4bfd-8f56-f8a1a0cee277 response: body: - string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''5a512f68-af7f-4e8b-b7d4-19f3ea7372db'' - does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-05-07T06:53:46","request-id":"e95d0b2f-6b3a-4784-8684-b9f4de302b13","client-request-id":"e95d0b2f-6b3a-4784-8684-b9f4de302b13"}}}' + string: '{"error":{"code":"Request_ResourceNotFound","message":"Resource ''4faba265-b3a0-4bfd-8f56-f8a1a0cee277'' + does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2022-06-09T05:48:08","request-id":"5864cfdf-3055-471b-8f47-81506a7db6f5","client-request-id":"5864cfdf-3055-471b-8f47-81506a7db6f5"}}}' headers: cache-control: - no-cache @@ -916,9 +1186,9 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 06:53:45 GMT + - Thu, 09 Jun 2022 05:48:07 GMT request-id: - - e95d0b2f-6b3a-4784-8684-b9f4de302b13 + - 5864cfdf-3055-471b-8f47-81506a7db6f5 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -926,7 +1196,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001642"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BC1"}}' x-ms-resource-unit: - '1' status: diff --git a/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_graph.py b/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_graph.py index 2d706cdac37..91f132ff833 100644 --- a/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_graph.py +++ b/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_graph.py @@ -305,6 +305,10 @@ def test_app_scenario(self): self.check('length(requiredResourceAccess)', 2) ]).get_output_in_json() + # Update with generic update + self.cmd('ad app update --id {app_id} --set isDeviceOnlyAuthSupported=true') + self.cmd('ad app show --id {app_id}', checks=self.check('isDeviceOnlyAuthSupported', True)) + self.cmd('ad app delete --id {app_id}') self.cmd('ad app show --id {app_id}', expect_failure=True) @@ -616,6 +620,10 @@ def test_service_principal_scenario(self): # Show with id self.cmd('ad sp show --id {id}') + # Update with generic update + self.cmd('ad sp update --id {id} --set appRoleAssignmentRequired=true') + self.cmd('ad sp show --id {id}', checks=self.check('appRoleAssignmentRequired', True)) + self.cmd('ad sp delete --id {app_id}') self.cmd('ad app delete --id {app_id}') diff --git a/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role_commands_thru_mock.py b/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role_commands_thru_mock.py index bc8f0f9850f..3a6f4f6885d 100644 --- a/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role_commands_thru_mock.py +++ b/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role_commands_thru_mock.py @@ -286,7 +286,7 @@ def test_reset_credentials_certificate_append_option(self, graph_client_mock): key_id_of_existing_cert = 'existing cert' name = 'http://mysp' - def application_patch_mock(id, body): + def application_update_mock(id, body): patch_invoked[0] = True self.assertEqual(id, MOCKED_APP_ID) self.assertEqual(2, len(body['keyCredentials'])) @@ -309,14 +309,14 @@ def application_patch_mock(id, body): faked_graph_client.tenant = MOCKED_TENANT_ID faked_graph_client.application_list.return_value = [MOCKED_APP] faked_graph_client.application_get.side_effect = [MOCKED_APP] - faked_graph_client.application_patch.side_effect = application_patch_mock + faked_graph_client.application_update.side_effect = application_update_mock # action result = reset_application_credential(cmd, faked_graph_client, MOCKED_APP_APP_ID, cert=test_cert, append=True, display_name=MOCKED_CREDENTIAL_DISPLAY_NAME) # assert - faked_graph_client.application_patch.assert_called_once() + faked_graph_client.application_update.assert_called_once() assert result == { 'appId': MOCKED_APP_APP_ID, 'password': None,