Created
May 8, 2022 17:07
-
-
Save pavoldecky/76b2f8f0cc34231490bb86dc2b35e638 to your computer and use it in GitHub Desktop.
Send messages to AZure Service Hub with REST in rest.client in VS CODE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "rest-client.environmentVariables": { | |
# "local":{ | |
# "aadV2ClientSecret":"", | |
# "aadV2ClientId":"", | |
# "aadV2TenantId":"", | |
# "aadV2AppUri":"", | |
# "namespace": "", | |
# "topicName": "" | |
# } | |
# } | |
POST https://login.microsoftonline.com/{{aadV2TenantId}}/oauth2/token HTTP/1.1 | |
Content-Type: application/x-www-form-urlencoded | |
grant_type=client_credentials | |
&client_id={{aadV2ClientId}} | |
&client_secret={{aadV2ClientSecret}} | |
&scope={{aadV2AppUri}} | |
@moduleId = 9ea2f2b6-8ef0-4c91-961a-9986450e3ac3 | |
### | |
POST https://{{namespace}}.servicebus.windows.net/{{topicName}}/messages | |
Authorization: {{$aadV2Token appOnly tenantId:91c369b5-1c9e-439c-989c-1867ec606603}} | |
Content-Type: application/json | |
BrokerProperties: {"CorrelationId":"{{moduleId}}"} | |
MessageType: TransferDomainsRequest | |
{ | |
"ModuleId": "E8324ABE-BFEC-44CB-A791-C331BC6174E0", | |
"CommandName": "TransferDomainsRequestasdasdasdasdasd" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment