pulumi-azure icon indicating copy to clipboard operation
pulumi-azure copied to clipboard

[Question] Is it possible to change Azure endpoint?

Open yershalom opened this issue 4 years ago • 5 comments

Hi,

Is it possible to change Azure API endpoint? For example, if I'm choosing public as environment so it will go to api.azure.net or something like that.. Can I change the endpoint?

Thanks.

yershalom avatar Jun 04 '20 09:06 yershalom

https://www.pulumi.com/docs/intro/cloud-providers/azure/#configuration describes the set of configuration options for the provider, which includes setting the environment and location.

leezen avatar Jun 04 '20 16:06 leezen

@leezen Thanks for your answer, but in my use case the endpoint is not under non of these environments. That's why I'm asking if there is an option to pass a custom endpoint maybe? Thanks

yershalom avatar Jun 04 '20 17:06 yershalom

Ah, sorry for misunderstanding. No, I don't believe there's a way to pass in a custom endpoint the way you're describing. Are you trying to use Azure Stack by chance?

leezen avatar Jun 04 '20 17:06 leezen

Yes, I'm using Azure stack, but I want to use for some internal environment that we have inside of microsoft :-)

yershalom avatar Jun 04 '20 17:06 yershalom

FWIW - there's some similar discussions related to the upstream Terraform AzureRM provider at https://github.com/terraform-providers/terraform-provider-azurerm/issues/6816. I suspect that some of the same workarounds mentioned there might be possible for Pulumi as well.

lukehoban avatar Jun 04 '20 20:06 lukehoban