Skip to content

Commit

Permalink
environments: correctly set the resourceIdentifier for control plane …
Browse files Browse the repository at this point in the history
…APIs such as Resource Manager and MS Graph
  • Loading branch information
manicminer committed Dec 4, 2023
1 parent 1659461 commit d690292
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk/environments/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func BatchAPI(endpoint string) *ApiEndpoint {
endpoint: pointer.To(endpoint),
appId: pointer.To(batchAppId),
name: "Batch",
resourceIdentifier: pointer.To("https://batch.core.windows.net"),
resourceIdentifier: pointer.To(endpoint),
}
}

Expand Down Expand Up @@ -121,7 +121,7 @@ func ManagedHSMAPI(endpoint, domainSuffix string) Api {
endpoint: pointer.To(endpoint),
appId: pointer.To(managedHSMAppId),
name: "ManagedHSM",
resourceIdentifier: pointer.To("https://managedhsm.azure.net"),
resourceIdentifier: pointer.To(endpoint),
}
}

Expand All @@ -141,7 +141,7 @@ func MicrosoftGraphAPI(endpoint string) *ApiEndpoint {
endpoint: pointer.To(endpoint),
appId: pointer.To(microsoftGraphAppId),
name: "MicrosoftGraph",
resourceIdentifier: pointer.To("https://graph.microsoft.com"),
resourceIdentifier: pointer.To(endpoint),
}
}

Expand Down Expand Up @@ -181,7 +181,7 @@ func ResourceManagerAPI(endpoint string) *ApiEndpoint {
endpoint: pointer.To(endpoint),
appId: pointer.To(azureServiceManagementAppId),
name: "ResourceManager",
resourceIdentifier: pointer.To("https://management.azure.com"),
resourceIdentifier: pointer.To(endpoint),
}
}

Expand All @@ -191,7 +191,7 @@ func ServiceBusAPI(endpoint, domainSuffix string) Api {
endpoint: pointer.To(endpoint),
appId: pointer.To(serviceBusAppId),
name: "ServiceBus",
resourceIdentifier: pointer.To("https://servicebus.azure.net"),
resourceIdentifier: pointer.To(endpoint),
}
}

Expand Down

0 comments on commit d690292

Please sign in to comment.