Skip to content
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

desktopvirtualization: adding a state migration for the new ID format #9495

Merged
merged 7 commits into from
Nov 26, 2020
1 change: 1 addition & 0 deletions azurerm/internal/services/analysisservices/parse/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ServerId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ServerID parses a Server ID into an ServerId struct
func ServerID(input string) (*ServerId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ConfigurationStoreId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ConfigurationStoreID parses a ConfigurationStore ID into an ConfigurationStoreId struct
func ConfigurationStoreID(input string) (*ConfigurationStoreId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ComponentId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ComponentID parses a Component ID into an ComponentId struct
func ComponentID(input string) (*ComponentId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id WebTestId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// WebTestID parses a WebTest ID into an WebTestId struct
func WebTestID(input string) (*WebTestId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id SpringCloudAppId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.SpringName, id.AppName)
}

// SpringCloudAppID parses a SpringCloudApp ID into an SpringCloudAppId struct
func SpringCloudAppID(input string) (*SpringCloudAppId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id SpringCloudCertificateId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.SpringName, id.CertificateName)
}

// SpringCloudCertificateID parses a SpringCloudCertificate ID into an SpringCloudCertificateId struct
func SpringCloudCertificateID(input string) (*SpringCloudCertificateId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id SpringCloudServiceId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.SpringName)
}

// SpringCloudServiceID parses a SpringCloudService ID into an SpringCloudServiceId struct
func SpringCloudServiceID(input string) (*SpringCloudServiceId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/attestation/parse/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ProviderId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.AttestationProviderName)
}

// ProviderID parses a Provider ID into an ProviderId struct
func ProviderID(input string) (*ProviderId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/automation/parse/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id ConnectionId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.AutomationAccountName, id.Name)
}

// ConnectionID parses a Connection ID into an ConnectionId struct
func ConnectionID(input string) (*ConnectionId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/batch/parse/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id AccountId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.BatchAccountName)
}

// AccountID parses a Account ID into an AccountId struct
func AccountID(input string) (*AccountId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/batch/parse/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id ApplicationId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.BatchAccountName, id.Name)
}

// ApplicationID parses a Application ID into an ApplicationId struct
func ApplicationID(input string) (*ApplicationId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/batch/parse/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id CertificateId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.BatchAccountName, id.Name)
}

// CertificateID parses a Certificate ID into an CertificateId struct
func CertificateID(input string) (*CertificateId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/batch/parse/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id PoolId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.BatchAccountName, id.Name)
}

// PoolID parses a Pool ID into an PoolId struct
func PoolID(input string) (*PoolId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cdn/parse/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id EndpointId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.ProfileName, id.Name)
}

// EndpointID parses a Endpoint ID into an EndpointId struct
func EndpointID(input string) (*EndpointId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cdn/parse/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ProfileId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ProfileID parses a Profile ID into an ProfileId struct
func ProfileID(input string) (*ProfileId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cognitive/parse/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id AccountId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// AccountID parses a Account ID into an AccountId struct
func AccountID(input string) (*AccountId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id AvailabilitySetId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// AvailabilitySetID parses a AvailabilitySet ID into an AvailabilitySetId struct
func AvailabilitySetID(input string) (*AvailabilitySetId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/compute/parse/dedicated_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id DedicatedHostId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.HostGroupName, id.HostName)
}

// DedicatedHostID parses a DedicatedHost ID into an DedicatedHostId struct
func DedicatedHostID(input string) (*DedicatedHostId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id DedicatedHostGroupId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.HostGroupName)
}

// DedicatedHostGroupID parses a DedicatedHostGroup ID into an DedicatedHostGroupId struct
func DedicatedHostGroupID(input string) (*DedicatedHostGroupId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id DiskEncryptionSetId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// DiskEncryptionSetID parses a DiskEncryptionSet ID into an DiskEncryptionSetId struct
func DiskEncryptionSetID(input string) (*DiskEncryptionSetId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/compute/parse/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ImageId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ImageID parses a Image ID into an ImageId struct
func ImageID(input string) (*ImageId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/compute/parse/managed_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ManagedDiskId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DiskName)
}

// ManagedDiskID parses a ManagedDisk ID into an ManagedDiskId struct
func ManagedDiskID(input string) (*ManagedDiskId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ProximityPlacementGroupId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ProximityPlacementGroupID parses a ProximityPlacementGroup ID into an ProximityPlacementGroupId struct
func ProximityPlacementGroupID(input string) (*ProximityPlacementGroupId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/compute/parse/shared_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id SharedImageId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.GalleryName, id.ImageName)
}

// SharedImageID parses a SharedImage ID into an SharedImageId struct
func SharedImageID(input string) (*SharedImageId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id SharedImageGalleryId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.GalleryName)
}

// SharedImageGalleryID parses a SharedImageGallery ID into an SharedImageGalleryId struct
func SharedImageGalleryID(input string) (*SharedImageGalleryId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (id SharedImageVersionId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.GalleryName, id.ImageName, id.VersionName)
}

// SharedImageVersionID parses a SharedImageVersion ID into an SharedImageVersionId struct
func SharedImageVersionID(input string) (*SharedImageVersionId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/compute/parse/virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id VirtualMachineId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// VirtualMachineID parses a VirtualMachine ID into an VirtualMachineId struct
func VirtualMachineID(input string) (*VirtualMachineId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id VirtualMachineExtensionId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.VirtualMachineName, id.ExtensionName)
}

// VirtualMachineExtensionID parses a VirtualMachineExtension ID into an VirtualMachineExtensionId struct
func VirtualMachineExtensionID(input string) (*VirtualMachineExtensionId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id VirtualMachineScaleSetId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// VirtualMachineScaleSetID parses a VirtualMachineScaleSet ID into an VirtualMachineScaleSetId struct
func VirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id VirtualMachineScaleSetExtensionId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.VirtualMachineScaleSetName, id.ExtensionName)
}

// VirtualMachineScaleSetExtensionID parses a VirtualMachineScaleSetExtension ID into an VirtualMachineScaleSetExtensionId struct
func VirtualMachineScaleSetExtensionID(input string) (*VirtualMachineScaleSetExtensionId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/containers/parse/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ClusterId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.ManagedClusterName)
}

// ClusterID parses a Cluster ID into an ClusterId struct
func ClusterID(input string) (*ClusterId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/containers/parse/node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id NodePoolId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.ManagedClusterName, id.AgentPoolName)
}

// NodePoolID parses a NodePool ID into an NodePoolId struct
func NodePoolID(input string) (*NodePoolId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id CassandraKeyspaceId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.Name)
}

// CassandraKeyspaceID parses a CassandraKeyspace ID into an CassandraKeyspaceId struct
func CassandraKeyspaceID(input string) (*CassandraKeyspaceId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/database_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id DatabaseAccountId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// DatabaseAccountID parses a DatabaseAccount ID into an DatabaseAccountId struct
func DatabaseAccountID(input string) (*DatabaseAccountId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/gremlin_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id GremlinDatabaseId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.Name)
}

// GremlinDatabaseID parses a GremlinDatabase ID into an GremlinDatabaseId struct
func GremlinDatabaseID(input string) (*GremlinDatabaseId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/gremlin_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (id GremlinGraphId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.GremlinDatabaseName, id.GraphName)
}

// GremlinGraphID parses a GremlinGraph ID into an GremlinGraphId struct
func GremlinGraphID(input string) (*GremlinGraphId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (id MongodbCollectionId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.MongodbDatabaseName, id.CollectionName)
}

// MongodbCollectionID parses a MongodbCollection ID into an MongodbCollectionId struct
func MongodbCollectionID(input string) (*MongodbCollectionId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/mongodb_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id MongodbDatabaseId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.Name)
}

// MongodbDatabaseID parses a MongodbDatabase ID into an MongodbDatabaseId struct
func MongodbDatabaseID(input string) (*MongodbDatabaseId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/sql_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (id SqlContainerId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.SqlDatabaseName, id.ContainerName)
}

// SqlContainerID parses a SqlContainer ID into an SqlContainerId struct
func SqlContainerID(input string) (*SqlContainerId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/sql_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id SqlDatabaseId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.Name)
}

// SqlDatabaseID parses a SqlDatabase ID into an SqlDatabaseId struct
func SqlDatabaseID(input string) (*SqlDatabaseId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func (id SqlStoredProcedureId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.SqlDatabaseName, id.ContainerName, id.StoredProcedureName)
}

// SqlStoredProcedureID parses a SqlStoredProcedure ID into an SqlStoredProcedureId struct
func SqlStoredProcedureID(input string) (*SqlStoredProcedureId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/cosmos/parse/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id TableId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.DatabaseAccountName, id.Name)
}

// TableID parses a Table ID into an TableId struct
func TableID(input string) (*TableId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ResourceProviderId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ResourceProviderID parses a ResourceProvider ID into an ResourceProviderId struct
func ResourceProviderID(input string) (*ResourceProviderId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id ProjectId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.ServiceName, id.Name)
}

// ProjectID parses a Project ID into an ProjectId struct
func ProjectID(input string) (*ProjectId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id ServiceId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// ServiceID parses a Service ID into an ServiceId struct
func ServiceID(input string) (*ServiceId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/databricks/parse/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id WorkspaceId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// WorkspaceID parses a Workspace ID into an WorkspaceId struct
func WorkspaceID(input string) (*WorkspaceId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id IntegrationRuntimeId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.FactoryName, id.Name)
}

// IntegrationRuntimeID parses a IntegrationRuntime ID into an IntegrationRuntimeId struct
func IntegrationRuntimeID(input string) (*IntegrationRuntimeId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (id LinkedServiceId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.FactoryName, id.Name)
}

// LinkedServiceID parses a LinkedService ID into an LinkedServiceId struct
func LinkedServiceID(input string) (*LinkedServiceId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/datalake/parse/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id AccountId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// AccountID parses a Account ID into an AccountId struct
func AccountID(input string) (*AccountId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/datashare/parse/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (id AccountId) ID(_ string) string {
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.Name)
}

// AccountID parses a Account ID into an AccountId struct
func AccountID(input string) (*AccountId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
Expand Down
Loading