citrix / terraform-provider-citrix

Terraform Provider for Citrix
https://registry.terraform.io/providers/citrix/citrix/latest
Apache License 2.0
45 stars 5 forks source link

Building a Machine Catalog in Azure - Image must be in the same subscription. #71

Closed TimBennett13 closed 4 months ago

TimBennett13 commented 4 months ago

Hello, I am building a machine catalog in an Azure subscription where the image vhd is in our "core" infrastructure subscription and we want to create Machine Catalogs in other subscriptions. I verified this by having a storage account and vhd on blob storage then setting the _resourcegroup value to the Azure resource group where the storage account is. This resource group is in a different subscription than _vda_resourcegroup. I get an error on terraform apply saying the image is not found. If I move the storage account to the same resource group as the _vda_resourcegroup and change the image _resourcegroup value to the same it works as expected. I upgraded the provider to 0.6.0. I'm troubleshooting the functionality with a vhd and storage account but the preferred method is a compute gallery image.

Thanks, Tim

aneeshk-citrix commented 4 months ago

Hi @TimBennett13,

We added a new property called shared_subscription as a part of azure_master_image. If the vhd is in a subscription different from what was used to create the hypervisor connection, you need to use this property. Are you already using this?

Here's a link to the documentation for shared_subscription - https://registry.terraform.io/providers/citrix/citrix/latest/docs/resources/machine_catalog#nested-schema-for-provisioning_schemeazure_machine_configazure_master_image

Thanks, Aneesh

TimBennett13 commented 4 months ago

Hello Aneesh, Thank you for your rapid response. I am not using the shared_subscription property. Thank you so much for pointing it out I'm adding it now.

Thanks, Tim

From: aneeshk-citrix @.> Sent: Thursday, May 30, 2024 3:13 PM To: citrix/terraform-provider-citrix @.> Cc: Tim Bennett @.>; Mention @.> Subject: Re: [citrix/terraform-provider-citrix] Building a Machine Catalog in Azure - Image must be in the same subscription. (Issue #71)

  External Email - Use Caution

Hi @TimBennett13https://github.com/TimBennett13,

We added a new property called shared_subscription as a part of azure_master_image. If the vhd is in a subscription different from what was used to create the hypervisor connection, you need to use this property. Are you already using this?

Here's a link to the documentation for shared_subscription - https://registry.terraform.io/providers/citrix/citrix/latest/docs/resources/machine_catalog#nested-schema-for-provisioning_schemeazure_machine_configazure_master_image

Thanks, Aneesh

- Reply to this email directly, view it on GitHubhttps://github.com/citrix/terraform-provider-citrix/issues/71#issuecomment-2140713424, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZYXPZTX5QOTQ7XPQIQIR4DZE525LAVCNFSM6AAAAABIRPDDJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQG4YTGNBSGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

TimBennett13 commented 4 months ago

The issue was that I didn't review the documentation after the last update.