-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata fixes #960
Metadata fixes #960
Conversation
…include MS Graph and will no longer work with Terraform providers
…resource IDs for public, usgov and china
d7b58d2
to
37e02a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things but otherwise LGTM 👍
sdk/environments/azure_china.go
Outdated
env.Attestation = applicationIdOnly("AttestationService", attestationServiceAppId) | ||
env.CDNFrontDoor = applicationIdOnly("CDNFrontDoor", cdnFrontDoorAppId) | ||
env.DataLake = applicationIdOnly("DataLake", dataLakeAppId) | ||
env.IoTCentral = applicationIdOnly("IoTCentral", iotCentralAppId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are applicationIdOnly
by default if not configured, so we should be able to remove these?
env.Attestation = applicationIdOnly("AttestationService", attestationServiceAppId) | |
env.CDNFrontDoor = applicationIdOnly("CDNFrontDoor", cdnFrontDoorAppId) | |
env.DataLake = applicationIdOnly("DataLake", dataLakeAppId) | |
env.IoTCentral = applicationIdOnly("IoTCentral", iotCentralAppId) |
sdk/environments/azure_gov.go
Outdated
// Services not currently available: Attestation, CDNFrontDoor, DataLake, IOTCentral | ||
env.Attestation = applicationIdOnly("AttestationService", attestationServiceAppId) | ||
env.CDNFrontDoor = applicationIdOnly("CDNFrontDoor", cdnFrontDoorAppId) | ||
env.DataLake = applicationIdOnly("DataLake", dataLakeAppId) | ||
env.IoTCentral = applicationIdOnly("IoTCentral", iotCentralAppId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same)
// Services not currently available: Attestation, CDNFrontDoor, DataLake, IOTCentral | |
env.Attestation = applicationIdOnly("AttestationService", attestationServiceAppId) | |
env.CDNFrontDoor = applicationIdOnly("CDNFrontDoor", cdnFrontDoorAppId) | |
env.DataLake = applicationIdOnly("DataLake", dataLakeAppId) | |
env.IoTCentral = applicationIdOnly("IoTCentral", iotCentralAppId) |
sdk/environments/environment.go
Outdated
func (e *ApiEndpoint) WithResourceIdentifier(identifier string) Api { | ||
e.resourceIdentifier = pointer.To(identifier) | ||
return e | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there's talk of overriding the token below on a per-Storage Account basis - perhaps this should return a new instance of Api
rather than mutating the existing object, to ensure this is a clean-copy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, will do that 👍
…point` rather than mutating the existing one
Warning
This must be merged in tandem with hashicorp/terraform-provider-azurerm#25546, to avoid breaking
storage