armresourcehealth

package module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 14 Imported by: 8

README

Azure Resource Health Module for Go

The armresourcehealth module provides operations for working with Azure Resource Health.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Supported version of Go (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Resource Health module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Resource Health. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Resource Health module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armresourcehealth.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armresourcehealth.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewAvailabilityStatusesClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Resource Health label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilityStateValues

type AvailabilityStateValues string

AvailabilityStateValues - Impacted resource status of the resource.

const (
	// AvailabilityStateValuesAvailable - Available
	AvailabilityStateValuesAvailable AvailabilityStateValues = "Available"
	// AvailabilityStateValuesDegraded - Degraded
	AvailabilityStateValuesDegraded AvailabilityStateValues = "Degraded"
	// AvailabilityStateValuesUnavailable - Unavailable
	AvailabilityStateValuesUnavailable AvailabilityStateValues = "Unavailable"
	// AvailabilityStateValuesUnknown - Unknown
	AvailabilityStateValuesUnknown AvailabilityStateValues = "Unknown"
)

func PossibleAvailabilityStateValuesValues

func PossibleAvailabilityStateValuesValues() []AvailabilityStateValues

PossibleAvailabilityStateValuesValues returns the possible values for the AvailabilityStateValues const type.

type AvailabilityStatus

type AvailabilityStatus struct {
	// Azure Resource Manager Identity for the availabilityStatuses resource.
	ID *string

	// Azure Resource Manager geo location of the resource.
	Location *string
	Name     *string

	// Properties of availability state.
	Properties *AvailabilityStatusProperties

	// Microsoft.ResourceHealth/AvailabilityStatuses.
	Type *string
}

AvailabilityStatus - availabilityStatus of a resource.

func (AvailabilityStatus) MarshalJSON added in v1.1.0

func (a AvailabilityStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailabilityStatus.

func (*AvailabilityStatus) UnmarshalJSON added in v1.1.0

func (a *AvailabilityStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityStatus.

type AvailabilityStatusListResult

type AvailabilityStatusListResult struct {
	// REQUIRED; The list of availabilityStatuses.
	Value []*AvailabilityStatus

	// The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch the next page of availabilityStatuses.
	NextLink *string
}

AvailabilityStatusListResult - The List availabilityStatus operation response.

func (AvailabilityStatusListResult) MarshalJSON

func (a AvailabilityStatusListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailabilityStatusListResult.

func (*AvailabilityStatusListResult) UnmarshalJSON added in v1.1.0

func (a *AvailabilityStatusListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityStatusListResult.

type AvailabilityStatusProperties

type AvailabilityStatusProperties struct {
	// The Article Id
	ArticleID *string

	// Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting
	// event
	AvailabilityState *AvailabilityStateValues

	// When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context
	// field does not have a value of Platform, then this field will be ignored.
	Category *string

	// When an event is created, it can either be triggered by a customer or the platform of the resource and this field will
	// illustrate that. This field is connected to the category field in this object.
	Context *string

	// Details of the availability status.
	DetailedStatus *string

	// In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples
	// are Planned, Unplanned etc.
	HealthEventCategory *string

	// In case of an availability impacting event, it describes where the health impacting event was originated. Examples are
	// PlatformInitiated, UserInitiated etc.
	HealthEventCause *string

	// It is a unique Id that identifies the event
	HealthEventID *string

	// In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle,
	// Downtime, Fault Analysis etc.
	HealthEventType *string

	// Timestamp for when last change in health status occurred.
	OccurredTime *time.Time

	// Chronicity of the availability transition.
	ReasonChronicity *ReasonChronicityTypes

	// When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples
	// are planned, unplanned, user initiated or an outage etc.
	ReasonType *string

	// An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned
	RecentlyResolved *AvailabilityStatusPropertiesRecentlyResolved

	// Lists actions the user can take based on the current availabilityState of the resource.
	RecommendedActions []*RecommendedAction

	// Timestamp for when the health was last checked.
	ReportedTime *time.Time

	// When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and
	// time for when the issue is expected to be resolved.
	ResolutionETA *time.Time

	// When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was
	// received.
	RootCauseAttributionTime *time.Time

	// Lists the service impacting events that may be affecting the health of the resource.
	ServiceImpactingEvents []*ServiceImpactingEvent

	// Summary description of the availability status.
	Summary *string

	// Title description of the availability status.
	Title *string
}

AvailabilityStatusProperties - Properties of availability state.

func (AvailabilityStatusProperties) MarshalJSON

func (a AvailabilityStatusProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailabilityStatusProperties.

func (*AvailabilityStatusProperties) UnmarshalJSON

func (a *AvailabilityStatusProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityStatusProperties.

type AvailabilityStatusPropertiesRecentlyResolved added in v0.5.0

type AvailabilityStatusPropertiesRecentlyResolved struct {
	// Timestamp when the availabilityState changes to Available.
	ResolvedTime *time.Time

	// Brief description of cause of the resource becoming unavailable.
	UnavailabilitySummary *string

	// Timestamp for when the availabilityState changed to Unavailable
	UnavailableOccurredTime *time.Time
}

AvailabilityStatusPropertiesRecentlyResolved - An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned

func (AvailabilityStatusPropertiesRecentlyResolved) MarshalJSON added in v0.5.0

MarshalJSON implements the json.Marshaller interface for type AvailabilityStatusPropertiesRecentlyResolved.

func (*AvailabilityStatusPropertiesRecentlyResolved) UnmarshalJSON added in v0.5.0

func (a *AvailabilityStatusPropertiesRecentlyResolved) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityStatusPropertiesRecentlyResolved.

type AvailabilityStatusesClient

type AvailabilityStatusesClient struct {
	// contains filtered or unexported fields
}

AvailabilityStatusesClient contains the methods for the AvailabilityStatuses group. Don't use this type directly, use NewAvailabilityStatusesClient() instead.

Generated from API version 2025-05-01

func NewAvailabilityStatusesClient

func NewAvailabilityStatusesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailabilityStatusesClient, error)

NewAvailabilityStatusesClient creates a new instance of AvailabilityStatusesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*AvailabilityStatusesClient) GetByResource

GetByResource - Gets current availability status for a single resource If the operation fails it returns an *azcore.ResponseError type.

  • resourceURI - The fully qualified Azure Resource manager identifier of the resource.
  • options - AvailabilityStatusesClientGetByResourceOptions contains the optional parameters for the AvailabilityStatusesClient.GetByResource method.
Example

Generated from example definition: 2025-05-01/AvailabilityStatus_GetByResource.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAvailabilityStatusesClient().GetByResource(ctx, "resourceUri", &armresourcehealth.AvailabilityStatusesClientGetByResourceOptions{
		Expand: to.Ptr("recommendedactions")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.AvailabilityStatusesClientGetByResourceResponse{
	// 	AvailabilityStatus: armresourcehealth.AvailabilityStatus{
	// 		Name: to.Ptr("current"),
	// 		Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
	// 		ID: to.Ptr("/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines /rhctestenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
	// 		Location: to.Ptr("eastus"),
	// 		Properties: &armresourcehealth.AvailabilityStatusProperties{
	// 			AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesUnavailable),
	// 			Category: to.Ptr("Unplanned"),
	// 			Context: to.Ptr("Platform Initiated"),
	// 			DetailedStatus: to.Ptr("Disk problems are preventing us from automatically recovering your virtual machine"),
	// 			OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:12:00Z"); return t}()),
	// 			ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
	// 			ReasonType: to.Ptr("Unplanned"),
	// 			RecommendedActions: []*armresourcehealth.RecommendedAction{
	// 				{
	// 					Action: to.Ptr("To start this virtual machine, open the resource blade and click Start"),
	// 					ActionURL: to.Ptr("<#ResourceBlade>"),
	// 					ActionURLText: to.Ptr("resource blade"),
	// 				},
	// 				{
	// 					Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
	// 					ActionURL: to.Ptr("<#SupportCase>"),
	// 					ActionURLText: to.Ptr("contact support"),
	// 				},
	// 			},
	// 			ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-04T14:11:29.7598931Z"); return t}()),
	// 			ResolutionETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:37:00Z"); return t}()),
	// 			RootCauseAttributionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:13:00Z"); return t}()),
	// 			Summary: to.Ptr("We're sorry, we couldn't automatically recover your virtual machine"),
	// 			Title: to.Ptr("Unavailable"),
	// 		},
	// 	},
	// }
}

func (*AvailabilityStatusesClient) NewListByResourceGroupPager added in v0.6.0

NewListByResourceGroupPager - Lists the current availability status for all the resources in the resource group.

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - AvailabilityStatusesClientListByResourceGroupOptions contains the optional parameters for the AvailabilityStatusesClient.NewListByResourceGroupPager method.
Example

Generated from example definition: 2025-05-01/AvailabilityStatuses_ListByResourceGroup.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAvailabilityStatusesClient().NewListByResourceGroupPager("resourceGroupName", &armresourcehealth.AvailabilityStatusesClientListByResourceGroupOptions{
		Expand: to.Ptr("recommendedactions")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.AvailabilityStatusesClientListByResourceGroupResponse{
		// 	AvailabilityStatusListResult: armresourcehealth.AvailabilityStatusListResult{
		// 		Value: []*armresourcehealth.AvailabilityStatus{
		// 			{
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/resourceGroupName/providers/Microsoft.Compute/virtualMachines/virtualMachineName/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
		// 				Name: to.Ptr("current"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				Location: to.Ptr("eastus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					Title: to.Ptr("Available"),
		// 					Summary: to.Ptr("Vm is available"),
		// 					ReasonType: to.Ptr("Unplanned"),
		// 					Context: to.Ptr("Platform Initiated"),
		// 					Category: to.Ptr("Unplanned"),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					DetailedStatus: to.Ptr("We have not seen any issues with your virtual machine"),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:12:00Z"); return t}()),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-04T14:11:29.7598931Z"); return t}()),
		// 					RecentlyResolved: &armresourcehealth.AvailabilityStatusPropertiesRecentlyResolved{
		// 						UnavailableOccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-28T00:48:00Z"); return t}()),
		// 						ResolvedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-28T00:49:00Z"); return t}()),
		// 						UnavailabilitySummary: to.Ptr("We are sorry your SQL database is unavailable"),
		// 					},
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("To start this virtualmachine, open the resource blade and click Start"),
		// 							ActionURL: to.Ptr("<#ResourceBlade>"),
		// 							ActionURLText: to.Ptr("resourceblade"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/resourceGroupName/providers/Microsoft.Compute/virtualMachines/virtualMachineName/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
		// 				Name: to.Ptr("current"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				Location: to.Ptr("eastus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesUnavailable),
		// 					Title: to.Ptr("Unavailable"),
		// 					Summary: to.Ptr("We are sorry, we couldn't automatically recovery our virtualmachine"),
		// 					ReasonType: to.Ptr("Unplanned"),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					DetailedStatus: to.Ptr("Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine"),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:12:00Z"); return t}()),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-04T14:11:29.7598931Z"); return t}()),
		// 					RootCauseAttributionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:13:00Z"); return t}()),
		// 					ResolutionETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:37:00Z"); return t}()),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("To start this virtualmachine, open the resource blade"),
		// 							ActionURL: to.Ptr("<#ResourceBlade>"),
		// 							ActionURLText: to.Ptr("resourceblade"),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contactsupport"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2025-05-01&$skipToken=OpaquePageNumber"),
		// 	},
		// }
	}
}

func (*AvailabilityStatusesClient) NewListBySubscriptionIDPager added in v0.6.0

NewListBySubscriptionIDPager - Lists the current availability status for all the resources in the subscription.

  • options - AvailabilityStatusesClientListBySubscriptionIDOptions contains the optional parameters for the AvailabilityStatusesClient.NewListBySubscriptionIDPager method.
Example

Generated from example definition: 2025-05-01/AvailabilityStatuses_ListBySubscriptionId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAvailabilityStatusesClient().NewListBySubscriptionIDPager(&armresourcehealth.AvailabilityStatusesClientListBySubscriptionIDOptions{
		Expand: to.Ptr("recommendedactions")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.AvailabilityStatusesClientListBySubscriptionIDResponse{
		// 	AvailabilityStatusListResult: armresourcehealth.AvailabilityStatusListResult{
		// 		NextLink: to.Ptr("https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2025-05-01&$skipToken=OpaquePageNumber"),
		// 		Value: []*armresourcehealth.AvailabilityStatus{
		// 			{
		// 				Name: to.Ptr("current"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/resourceGroupName/providers/Microsoft.Compute/virtualMachines/virtualMachineName/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
		// 				Location: to.Ptr("eastus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					Category: to.Ptr("Unplanned"),
		// 					Context: to.Ptr("Platform Initiated"),
		// 					DetailedStatus: to.Ptr("We have not seen any issues with your virtual machine"),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:12:00Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr("Unplanned"),
		// 					RecentlyResolved: &armresourcehealth.AvailabilityStatusPropertiesRecentlyResolved{
		// 						ResolvedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-28T00:49:00Z"); return t}()),
		// 						UnavailableOccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-28T00:48:00Z"); return t}()),
		// 						UnavailabilitySummary: to.Ptr("We are sorry your SQL database is unavailable"),
		// 					},
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("To start this virtualmachine, open the resource blade and click Start"),
		// 							ActionURL: to.Ptr("<#ResourceBlade>"),
		// 							ActionURLText: to.Ptr("resourceblade"),
		// 						},
		// 					},
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-04T14:11:29.7598931Z"); return t}()),
		// 					Summary: to.Ptr("Vm is available"),
		// 					Title: to.Ptr("Available"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("current"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/resourceGroupName/providers/Microsoft.Compute/virtualMachines/virtualMachineName/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
		// 				Location: to.Ptr("eastus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesUnavailable),
		// 					DetailedStatus: to.Ptr("Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine"),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:12:00Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr("Unplanned"),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("To start this virtualmachine, open the resource blade"),
		// 							ActionURL: to.Ptr("<#ResourceBlade>"),
		// 							ActionURLText: to.Ptr("resourceblade"),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contactsupport"),
		// 						},
		// 					},
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-04T14:11:29.7598931Z"); return t}()),
		// 					ResolutionETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:37:00Z"); return t}()),
		// 					RootCauseAttributionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:13:00Z"); return t}()),
		// 					Summary: to.Ptr("We are sorry, we couldn't automatically recovery our virtualmachine"),
		// 					Title: to.Ptr("Unavailable"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

func (*AvailabilityStatusesClient) NewListPager added in v0.6.0

NewListPager - Lists all historical availability transitions and impacting events for a single resource.

  • resourceURI - The fully qualified Azure Resource manager identifier of the resource.
  • options - AvailabilityStatusesClientListOptions contains the optional parameters for the AvailabilityStatusesClient.NewListPager method.
Example

Generated from example definition: 2025-05-01/AvailabilityStatuses_List.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAvailabilityStatusesClient().NewListPager("resourceUri", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.AvailabilityStatusesClientListResponse{
		// 	AvailabilityStatusListResult: armresourcehealth.AvailabilityStatusListResult{
		// 		Value: []*armresourcehealth.AvailabilityStatus{
		// 			{
		// 				ID: to.Ptr("/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
		// 				Name: to.Ptr("current"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				Location: to.Ptr("eastus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesUnavailable),
		// 					Title: to.Ptr("Unavailable"),
		// 					Summary: to.Ptr("We're sorry, we couldn't automatically recover your virtual machine"),
		// 					ReasonType: to.Ptr("Unplanned"),
		// 					Context: to.Ptr("Platform Initiated"),
		// 					Category: to.Ptr("Unplanned"),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					DetailedStatus: to.Ptr("Disk problems are preventing us from automatically recovering your virtual machine"),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:12:00Z"); return t}()),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-04T14:11:29.7598931Z"); return t}()),
		// 					RootCauseAttributionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:13:00Z"); return t}()),
		// 					ResolutionETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T09:37:00Z"); return t}()),
		// 					ServiceImpactingEvents: []*armresourcehealth.ServiceImpactingEvent{
		// 						{
		// 							EventStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-02T19:23:13.7115125Z"); return t}()),
		// 							EventStatusLastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-02T19:27:04.9543491Z"); return t}()),
		// 							CorrelationID: to.Ptr("b56d0180-2d6c-4f7b-b750-c1eca681874c"),
		// 							Status: &armresourcehealth.ServiceImpactingEventStatus{
		// 								Value: to.Ptr("Resolved"),
		// 							},
		// 							IncidentProperties: &armresourcehealth.ServiceImpactingEventIncidentProperties{
		// 								Title: to.Ptr("Virtual Machines - West Europe [West Europe]"),
		// 								Service: to.Ptr("Virtual Machines"),
		// 								Region: to.Ptr("East US"),
		// 								IncidentType: to.Ptr("outage"),
		// 							},
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				ID: to.Ptr("/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/2016-03-28+16%3a23%3a00Z"),
		// 				Name: to.Ptr("2016-03-28+16%3a23%3a00Z"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				Location: to.Ptr("eastus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					Summary: to.Ptr("This virtual machine is running normally"),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					DetailedStatus: to.Ptr("There aren’t any known Azure platform problems affecting this virtual machine"),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-28T16:23:00Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type AvailabilityStatusesClientGetByResourceOptions added in v0.3.0

type AvailabilityStatusesClientGetByResourceOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

AvailabilityStatusesClientGetByResourceOptions contains the optional parameters for the AvailabilityStatusesClient.GetByResource method.

type AvailabilityStatusesClientGetByResourceResponse added in v0.3.0

type AvailabilityStatusesClientGetByResourceResponse struct {
	// availabilityStatus of a resource.
	AvailabilityStatus
}

AvailabilityStatusesClientGetByResourceResponse contains the response from method AvailabilityStatusesClient.GetByResource.

type AvailabilityStatusesClientListByResourceGroupOptions added in v0.3.0

type AvailabilityStatusesClientListByResourceGroupOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

AvailabilityStatusesClientListByResourceGroupOptions contains the optional parameters for the AvailabilityStatusesClient.NewListByResourceGroupPager method.

type AvailabilityStatusesClientListByResourceGroupResponse added in v0.3.0

type AvailabilityStatusesClientListByResourceGroupResponse struct {
	// The List availabilityStatus operation response.
	AvailabilityStatusListResult
}

AvailabilityStatusesClientListByResourceGroupResponse contains the response from method AvailabilityStatusesClient.NewListByResourceGroupPager.

type AvailabilityStatusesClientListBySubscriptionIDOptions added in v0.3.0

type AvailabilityStatusesClientListBySubscriptionIDOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

AvailabilityStatusesClientListBySubscriptionIDOptions contains the optional parameters for the AvailabilityStatusesClient.NewListBySubscriptionIDPager method.

type AvailabilityStatusesClientListBySubscriptionIDResponse added in v0.3.0

type AvailabilityStatusesClientListBySubscriptionIDResponse struct {
	// The List availabilityStatus operation response.
	AvailabilityStatusListResult
}

AvailabilityStatusesClientListBySubscriptionIDResponse contains the response from method AvailabilityStatusesClient.NewListBySubscriptionIDPager.

type AvailabilityStatusesClientListOptions added in v0.3.0

type AvailabilityStatusesClientListOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

AvailabilityStatusesClientListOptions contains the optional parameters for the AvailabilityStatusesClient.NewListPager method.

type AvailabilityStatusesClientListResponse added in v0.3.0

type AvailabilityStatusesClientListResponse struct {
	// The List availabilityStatus operation response.
	AvailabilityStatusListResult
}

AvailabilityStatusesClientListResponse contains the response from method AvailabilityStatusesClient.NewListPager.

type ChildAvailabilityStatusesClient

type ChildAvailabilityStatusesClient struct {
	// contains filtered or unexported fields
}

ChildAvailabilityStatusesClient contains the methods for the ChildAvailabilityStatuses group. Don't use this type directly, use NewChildAvailabilityStatusesClient() instead.

Generated from API version 2025-05-01

func NewChildAvailabilityStatusesClient

func NewChildAvailabilityStatusesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ChildAvailabilityStatusesClient, error)

NewChildAvailabilityStatusesClient creates a new instance of ChildAvailabilityStatusesClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*ChildAvailabilityStatusesClient) GetByResource

GetByResource - Gets current availability status for a single resource If the operation fails it returns an *azcore.ResponseError type.

  • resourceURI - undefined
  • options - ChildAvailabilityStatusesClientGetByResourceOptions contains the optional parameters for the ChildAvailabilityStatusesClient.GetByResource method.
Example

Generated from example definition: 2025-05-01/ChildAvailabilityStatus_GetByResource.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewChildAvailabilityStatusesClient().GetByResource(ctx, "subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4", &armresourcehealth.ChildAvailabilityStatusesClientGetByResourceOptions{
		Expand: to.Ptr("recommendedactions")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.ChildAvailabilityStatusesClientGetByResourceResponse{
	// 	AvailabilityStatus: armresourcehealth.AvailabilityStatus{
	// 		Name: to.Ptr("current"),
	// 		Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
	// 		ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current"),
	// 		Location: to.Ptr("southcentralus"),
	// 		Properties: &armresourcehealth.AvailabilityStatusProperties{
	// 			AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
	// 			DetailedStatus: to.Ptr(""),
	// 			OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:44Z"); return t}()),
	// 			ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
	// 			ReasonType: to.Ptr(""),
	// 			RecommendedActions: []*armresourcehealth.RecommendedAction{
	// 				{
	// 					Action: to.Ptr("To start this virtual machine, open the resource blade and click Start"),
	// 					ActionURL: to.Ptr("<#ResourceBlade>"),
	// 					ActionURLText: to.Ptr("resource blade"),
	// 				},
	// 				{
	// 					Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
	// 					ActionURL: to.Ptr("<#SupportCase>"),
	// 					ActionURLText: to.Ptr("contact support"),
	// 				},
	// 			},
	// 			ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-04T01:19:11.955255Z"); return t}()),
	// 			Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
	// 		},
	// 	},
	// }
}

func (*ChildAvailabilityStatusesClient) NewListPager added in v1.2.0

NewListPager - Lists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status

  • resourceURI - undefined
  • options - ChildAvailabilityStatusesClientListOptions contains the optional parameters for the ChildAvailabilityStatusesClient.NewListPager method.
Example

Generated from example definition: 2025-05-01/ChildAvailabilityStatuses_List.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewChildAvailabilityStatusesClient().NewListPager("subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.ChildAvailabilityStatusesClientListResponse{
		// 	AvailabilityStatusListResult: armresourcehealth.AvailabilityStatusListResult{
		// 		Value: []*armresourcehealth.AvailabilityStatus{
		// 			{
		// 				Name: to.Ptr("current"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/current"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:44Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesTransient),
		// 					ReasonType: to.Ptr(""),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("If you're having problems, use the Troubleshoot tool to get recommended solutions."),
		// 							ActionURL: to.Ptr("<#TroubleshootV2Blade>"),
		// 							ActionURLText: to.Ptr("Troubleshoot tool"),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contact support"),
		// 						},
		// 					},
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-05T19:45:45.6640838Z"); return t}()),
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("2018-11-30+23%3a36%3a03Z"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+23%3a36%3a03Z"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesUnavailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:36:03Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesTransient),
		// 					ReasonType: to.Ptr("Customer Initiated"),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("Check back here for status updates"),
		// 							ActionURL: to.Ptr(""),
		// 							ActionURLText: to.Ptr(""),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contact support"),
		// 						},
		// 					},
		// 					ResolutionETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:56:03Z"); return t}()),
		// 					RootCauseAttributionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:36:02.514Z"); return t}()),
		// 					Summary: to.Ptr("This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes."),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("2018-11-30+22%3a32%3a12Z"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a32%3a12Z"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T22:32:12Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesTransient),
		// 					ReasonType: to.Ptr(""),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("If you're having problems, use the Troubleshoot tool to get recommended solutions."),
		// 							ActionURL: to.Ptr("<#TroubleshootV2Blade>"),
		// 							ActionURLText: to.Ptr("Troubleshoot tool"),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contact support"),
		// 						},
		// 					},
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("2018-11-30+22%3a30%3a23Z"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a30%3a23Z"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesUnavailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T22:30:23Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesTransient),
		// 					ReasonType: to.Ptr("Customer Initiated"),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("Check back here for status updates"),
		// 							ActionURL: to.Ptr(""),
		// 							ActionURLText: to.Ptr(""),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contact support"),
		// 						},
		// 					},
		// 					ResolutionETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T22:50:23Z"); return t}()),
		// 					RootCauseAttributionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T22:30:22.256Z"); return t}()),
		// 					Summary: to.Ptr("This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes."),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("2018-11-21+00%3a00%3a00Z"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-21+00%3a00%3a00Z"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-21T00:00:00Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesTransient),
		// 					ReasonType: to.Ptr(""),
		// 					RecommendedActions: []*armresourcehealth.RecommendedAction{
		// 						{
		// 							Action: to.Ptr("If you're having problems, use the Troubleshoot tool to get recommended solutions."),
		// 							ActionURL: to.Ptr("<#TroubleshootV2Blade>"),
		// 							ActionURLText: to.Ptr("Troubleshoot tool"),
		// 						},
		// 						{
		// 							Action: to.Ptr("If you are experiencing problems you believe are caused by Azure, contact support"),
		// 							ActionURL: to.Ptr("<#SupportCase>"),
		// 							ActionURLText: to.Ptr("contact support"),
		// 						},
		// 					},
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type ChildAvailabilityStatusesClientGetByResourceOptions added in v0.3.0

type ChildAvailabilityStatusesClientGetByResourceOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

ChildAvailabilityStatusesClientGetByResourceOptions contains the optional parameters for the ChildAvailabilityStatusesClient.GetByResource method.

type ChildAvailabilityStatusesClientGetByResourceResponse added in v0.3.0

type ChildAvailabilityStatusesClientGetByResourceResponse struct {
	// availabilityStatus of a resource.
	AvailabilityStatus
}

ChildAvailabilityStatusesClientGetByResourceResponse contains the response from method ChildAvailabilityStatusesClient.GetByResource.

type ChildAvailabilityStatusesClientListOptions added in v0.3.0

type ChildAvailabilityStatusesClientListOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

ChildAvailabilityStatusesClientListOptions contains the optional parameters for the ChildAvailabilityStatusesClient.NewListPager method.

type ChildAvailabilityStatusesClientListResponse added in v0.3.0

type ChildAvailabilityStatusesClientListResponse struct {
	// The List availabilityStatus operation response.
	AvailabilityStatusListResult
}

ChildAvailabilityStatusesClientListResponse contains the response from method ChildAvailabilityStatusesClient.NewListPager.

type ChildResourcesClient

type ChildResourcesClient struct {
	// contains filtered or unexported fields
}

ChildResourcesClient contains the methods for the ChildResources group. Don't use this type directly, use NewChildResourcesClient() instead.

Generated from API version 2025-05-01

func NewChildResourcesClient

func NewChildResourcesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ChildResourcesClient, error)

NewChildResourcesClient creates a new instance of ChildResourcesClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*ChildResourcesClient) NewListPager added in v1.2.0

NewListPager - Lists the all the children and its current health status for a parent resource. Use the nextLink property in the response to get the next page of children current health

  • resourceURI - The fully qualified Azure Resource manager identifier of the resource.
  • options - ChildResourcesClientListOptions contains the optional parameters for the ChildResourcesClient.NewListPager method.
Example

Generated from example definition: 2025-05-01/ChildResources_List.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewChildResourcesClient().NewListPager("subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.ChildResourcesClientListResponse{
		// 	AvailabilityStatusListResult: armresourcehealth.AvailabilityStatusListResult{
		// 		Value: []*armresourcehealth.AvailabilityStatus{
		// 			{
		// 				Name: to.Ptr("rhctest_0"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/0/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:43Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr(""),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-04T01:18:25.575477Z"); return t}()),
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("rhctest_3"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/3/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:41Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr(""),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-04T01:18:25.575477Z"); return t}()),
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("rhctest_1"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/1/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:48Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr(""),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-04T01:18:25.575477Z"); return t}()),
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("rhctest_2"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/2/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:43Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr(""),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-04T01:18:25.575477Z"); return t}()),
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("rhctest_4"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses"),
		// 				ID: to.Ptr("/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current"),
		// 				Location: to.Ptr("southcentralus"),
		// 				Properties: &armresourcehealth.AvailabilityStatusProperties{
		// 					AvailabilityState: to.Ptr(armresourcehealth.AvailabilityStateValuesAvailable),
		// 					DetailedStatus: to.Ptr(""),
		// 					OccurredTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-30T23:37:44Z"); return t}()),
		// 					ReasonChronicity: to.Ptr(armresourcehealth.ReasonChronicityTypesPersistent),
		// 					ReasonType: to.Ptr(""),
		// 					ReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-12-04T01:18:25.575477Z"); return t}()),
		// 					Summary: to.Ptr("There aren't any known Azure platform problems affecting this virtual machine"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type ChildResourcesClientListOptions added in v0.3.0

type ChildResourcesClientListOptions struct {
	// Setting $expand=recommendedactions in url query expands the recommendedactions in the response.
	Expand *string

	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

ChildResourcesClientListOptions contains the optional parameters for the ChildResourcesClient.NewListPager method.

type ChildResourcesClientListResponse added in v0.3.0

type ChildResourcesClientListResponse struct {
	// The List availabilityStatus operation response.
	AvailabilityStatusListResult
}

ChildResourcesClientListResponse contains the response from method ChildResourcesClient.NewListPager.

type ClientFactory added in v1.1.0

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory added in v1.1.0

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewAvailabilityStatusesClient added in v1.1.0

func (c *ClientFactory) NewAvailabilityStatusesClient() *AvailabilityStatusesClient

NewAvailabilityStatusesClient creates a new instance of AvailabilityStatusesClient.

func (*ClientFactory) NewChildAvailabilityStatusesClient added in v1.2.0

func (c *ClientFactory) NewChildAvailabilityStatusesClient() *ChildAvailabilityStatusesClient

NewChildAvailabilityStatusesClient creates a new instance of ChildAvailabilityStatusesClient.

func (*ClientFactory) NewChildResourcesClient added in v1.2.0

func (c *ClientFactory) NewChildResourcesClient() *ChildResourcesClient

NewChildResourcesClient creates a new instance of ChildResourcesClient.

func (*ClientFactory) NewEmergingIssuesClient added in v1.2.0

func (c *ClientFactory) NewEmergingIssuesClient() *EmergingIssuesClient

NewEmergingIssuesClient creates a new instance of EmergingIssuesClient.

func (*ClientFactory) NewEventClient added in v1.2.0

func (c *ClientFactory) NewEventClient() *EventClient

NewEventClient creates a new instance of EventClient.

func (*ClientFactory) NewEventsClient added in v1.2.0

func (c *ClientFactory) NewEventsClient() *EventsClient

NewEventsClient creates a new instance of EventsClient.

func (*ClientFactory) NewImpactedResourcesClient added in v1.2.0

func (c *ClientFactory) NewImpactedResourcesClient() *ImpactedResourcesClient

NewImpactedResourcesClient creates a new instance of ImpactedResourcesClient.

func (*ClientFactory) NewMetadataClient added in v1.2.0

func (c *ClientFactory) NewMetadataClient() *MetadataClient

NewMetadataClient creates a new instance of MetadataClient.

func (*ClientFactory) NewOperationsClient added in v1.1.0

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewSecurityAdvisoryImpactedResourcesClient added in v1.2.0

func (c *ClientFactory) NewSecurityAdvisoryImpactedResourcesClient() *SecurityAdvisoryImpactedResourcesClient

NewSecurityAdvisoryImpactedResourcesClient creates a new instance of SecurityAdvisoryImpactedResourcesClient.

type CreatedByType added in v1.2.0

type CreatedByType string

CreatedByType - The kind of entity that created the resource.

const (
	// CreatedByTypeApplication - The entity was created by an application.
	CreatedByTypeApplication CreatedByType = "Application"
	// CreatedByTypeKey - The entity was created by a key.
	CreatedByTypeKey CreatedByType = "Key"
	// CreatedByTypeManagedIdentity - The entity was created by a managed identity.
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	// CreatedByTypeUser - The entity was created by a user.
	CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues added in v1.2.0

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type EmergingIssue

type EmergingIssue struct {
	// Timestamp for when last time refreshed for ongoing emerging issue.
	RefreshTimestamp *time.Time

	// The list of emerging issues of active event type.
	StatusActiveEvents []*StatusActiveEvent

	// The list of emerging issues of banner type.
	StatusBanners []*StatusBanner
}

EmergingIssue - On-going emerging issue from azure status.

func (EmergingIssue) MarshalJSON

func (e EmergingIssue) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EmergingIssue.

func (*EmergingIssue) UnmarshalJSON

func (e *EmergingIssue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EmergingIssue.

type EmergingIssueImpact

type EmergingIssueImpact struct {
	// The impacted service id.
	ID *string

	// The impacted service name.
	Name *string

	// The list of impacted regions for corresponding emerging issues.
	Regions []*ImpactedRegion
}

EmergingIssueImpact - Object of the emerging issue impact on services and regions.

func (EmergingIssueImpact) MarshalJSON

func (e EmergingIssueImpact) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EmergingIssueImpact.

func (*EmergingIssueImpact) UnmarshalJSON added in v1.2.0

func (e *EmergingIssueImpact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EmergingIssueImpact.

type EmergingIssueListResult

type EmergingIssueListResult struct {
	// The link used to get the next page of emerging issues.
	NextLink *string

	// The list of emerging issues.
	Value []*EmergingIssuesGetResult
}

EmergingIssueListResult - The list of emerging issues.

func (EmergingIssueListResult) MarshalJSON

func (e EmergingIssueListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EmergingIssueListResult.

func (*EmergingIssueListResult) UnmarshalJSON added in v1.2.0

func (e *EmergingIssueListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EmergingIssueListResult.

type EmergingIssuesClient

type EmergingIssuesClient struct {
	// contains filtered or unexported fields
}

EmergingIssuesClient contains the methods for the EmergingIssues group. Don't use this type directly, use NewEmergingIssuesClient() instead.

Generated from API version 2025-05-01

func NewEmergingIssuesClient

func NewEmergingIssuesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*EmergingIssuesClient, error)

NewEmergingIssuesClient creates a new instance of EmergingIssuesClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*EmergingIssuesClient) Get

Get - Gets Azure services' emerging issues. If the operation fails it returns an *azcore.ResponseError type.

  • issueName - The name of the emerging issue.
  • options - EmergingIssuesClientGetOptions contains the optional parameters for the EmergingIssuesClient.Get method.
Example

Generated from example definition: 2025-05-01/EmergingIssues_Get.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewEmergingIssuesClient().Get(ctx, armresourcehealth.IssueNameParameterDefault, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.EmergingIssuesClientGetResponse{
	// 	EmergingIssuesGetResult: armresourcehealth.EmergingIssuesGetResult{
	// 		Name: to.Ptr("default"),
	// 		Type: to.Ptr("/providers/Microsoft.ResourceHealth/emergingissues"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/emergingissues/default"),
	// 		Properties: &armresourcehealth.EmergingIssue{
	// 			RefreshTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-17T09:12:00Z"); return t}()),
	// 			StatusActiveEvents: []*armresourcehealth.StatusActiveEvent{
	// 				{
	// 					Description: to.Ptr("Virtual Machines case"),
	// 					Cloud: to.Ptr("Public"),
	// 					Impacts: []*armresourcehealth.EmergingIssueImpact{
	// 						{
	// 							Name: to.Ptr("Virtual Machines"),
	// 							ID: to.Ptr("virtual-machines"),
	// 							Regions: []*armresourcehealth.ImpactedRegion{
	// 								{
	// 									Name: to.Ptr("Central US"),
	// 									ID: to.Ptr("us-central"),
	// 								},
	// 								{
	// 									Name: to.Ptr("East US"),
	// 									ID: to.Ptr("us-east"),
	// 								},
	// 							},
	// 						},
	// 					},
	// 					LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T08:10:00Z"); return t}()),
	// 					Published: to.Ptr(true),
	// 					Severity: to.Ptr(armresourcehealth.SeverityValuesInformation),
	// 					Stage: to.Ptr(armresourcehealth.StageValuesActive),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T08:06:00Z"); return t}()),
	// 					Title: to.Ptr("Automatic updates to the dial tone page from ACM - SHD event"),
	// 					TrackingID: to.Ptr("KTTK-TZ8"),
	// 				},
	// 				{
	// 					Description: to.Ptr("All Azure SQL service management requests (create, update, delete, etc.) are serviced through the SQL Control Plane infrastructure. Engineers determined that during this issue, the control plane service became unhealthy after receiving a significant increase in internally generated operations and reaching an operational threshold. This led to service management requests becoming unable to complete, which in-turn resulted in timeouts and throttling. Subsequent investigation by engineers determined this issue was due service requests from an internal Azure group that triggered a bug which caused an excessive number of internally generated operations."),
	// 					Cloud: to.Ptr("Public"),
	// 					Impacts: []*armresourcehealth.EmergingIssueImpact{
	// 						{
	// 							Name: to.Ptr("SQL Database"),
	// 							ID: to.Ptr("sql-database"),
	// 							Regions: []*armresourcehealth.ImpactedRegion{
	// 								{
	// 									Name: to.Ptr("West Europe"),
	// 									ID: to.Ptr("europe-west"),
	// 								},
	// 							},
	// 						},
	// 					},
	// 					LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-16T05:11:00Z"); return t}()),
	// 					Published: to.Ptr(true),
	// 					Severity: to.Ptr(armresourcehealth.SeverityValuesError),
	// 					Stage: to.Ptr(armresourcehealth.StageValuesActive),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-16T05:11:00Z"); return t}()),
	// 					Title: to.Ptr("Azure SQL Database - West Europe"),
	// 					TrackingID: to.Ptr("4KHK-LS8"),
	// 				},
	// 			},
	// 			StatusBanners: []*armresourcehealth.StatusBanner{
	// 				{
	// 					Cloud: to.Ptr("Public"),
	// 					LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T08:04:00Z"); return t}()),
	// 					Message: to.Ptr("Testing backup site"),
	// 					Title: to.Ptr("Automatic updates to the dial tone page from ACM - banner"),
	// 				},
	// 				{
	// 					Cloud: to.Ptr("Public"),
	// 					LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T10:15:00Z"); return t}()),
	// 					Message: to.Ptr("<span style=\"color: #323237; font-family: &quot;Segoe UI&quot;, SegoeUI, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 16px; background-color: #ffffff\">A subset of customers using Storage in West Europe experienced service availability issues. In addition, resources with dependencies on the impacted storage scale units may have experienced downstream impact in the form of availability issues, connection failures, or high latency. Engineers are investigating the root cause.</span>"),
	// 					Title: to.Ptr("Storage - West Europe"),
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

func (*EmergingIssuesClient) NewListPager added in v1.2.0

NewListPager - Lists Azure services' emerging issues.

  • options - EmergingIssuesClientListOptions contains the optional parameters for the EmergingIssuesClient.NewListPager method.
Example

Generated from example definition: 2025-05-01/EmergingIssues_List.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewEmergingIssuesClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.EmergingIssuesClientListResponse{
		// 	EmergingIssueListResult: armresourcehealth.EmergingIssueListResult{
		// 		NextLink: to.Ptr("string"),
		// 		Value: []*armresourcehealth.EmergingIssuesGetResult{
		// 			{
		// 				Name: to.Ptr("default"),
		// 				Type: to.Ptr("/providers/Microsoft.ResourceHealth/emergingissues"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/emergingissues/default"),
		// 				Properties: &armresourcehealth.EmergingIssue{
		// 					RefreshTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-17T09:12:00Z"); return t}()),
		// 					StatusActiveEvents: []*armresourcehealth.StatusActiveEvent{
		// 						{
		// 							Description: to.Ptr("Virtual Machines case"),
		// 							Cloud: to.Ptr("Public"),
		// 							Impacts: []*armresourcehealth.EmergingIssueImpact{
		// 								{
		// 									Name: to.Ptr("Virtual Machines"),
		// 									ID: to.Ptr("virtual-machines"),
		// 									Regions: []*armresourcehealth.ImpactedRegion{
		// 										{
		// 											Name: to.Ptr("Central US"),
		// 											ID: to.Ptr("us-central"),
		// 										},
		// 										{
		// 											Name: to.Ptr("East US"),
		// 											ID: to.Ptr("us-east"),
		// 										},
		// 									},
		// 								},
		// 							},
		// 							LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T08:10:00Z"); return t}()),
		// 							Published: to.Ptr(true),
		// 							Severity: to.Ptr(armresourcehealth.SeverityValuesInformation),
		// 							Stage: to.Ptr(armresourcehealth.StageValuesActive),
		// 							StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T08:06:00Z"); return t}()),
		// 							Title: to.Ptr("Automatic updates to the dial tone page from ACM - SHD event"),
		// 							TrackingID: to.Ptr("KTTK-TZ8"),
		// 						},
		// 						{
		// 							Description: to.Ptr("All Azure SQL service management requests (create, update, delete, etc.) are serviced through the SQL Control Plane infrastructure. Engineers determined that during this issue, the control plane service became unhealthy after receiving a significant increase in internally generated operations and reaching an operational threshold. This led to service management requests becoming unable to complete, which in-turn resulted in timeouts and throttling. Subsequent investigation by engineers determined this issue was due service requests from an internal Azure group that triggered a bug which caused an excessive number of internally generated operations."),
		// 							Cloud: to.Ptr("Public"),
		// 							Impacts: []*armresourcehealth.EmergingIssueImpact{
		// 								{
		// 									Name: to.Ptr("SQL Database"),
		// 									ID: to.Ptr("sql-database"),
		// 									Regions: []*armresourcehealth.ImpactedRegion{
		// 										{
		// 											Name: to.Ptr("West Europe"),
		// 											ID: to.Ptr("europe-west"),
		// 										},
		// 									},
		// 								},
		// 							},
		// 							LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-16T05:11:00Z"); return t}()),
		// 							Published: to.Ptr(true),
		// 							Severity: to.Ptr(armresourcehealth.SeverityValuesError),
		// 							Stage: to.Ptr(armresourcehealth.StageValuesActive),
		// 							StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-16T05:11:00Z"); return t}()),
		// 							Title: to.Ptr("Azure SQL Database - West Europe"),
		// 							TrackingID: to.Ptr("4KHK-LS8"),
		// 						},
		// 					},
		// 					StatusBanners: []*armresourcehealth.StatusBanner{
		// 						{
		// 							Cloud: to.Ptr("Public"),
		// 							LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T08:04:00Z"); return t}()),
		// 							Message: to.Ptr("Testing backup site"),
		// 							Title: to.Ptr("Automatic updates to the dial tone page from ACM - banner"),
		// 						},
		// 						{
		// 							Cloud: to.Ptr("Public"),
		// 							LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-15T10:15:00Z"); return t}()),
		// 							Message: to.Ptr("<span style=\"color: #323237; font-family: &quot;Segoe UI&quot;, SegoeUI, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 16px; background-color: #ffffff\">A subset of customers using Storage in West Europe experienced service availability issues. In addition, resources with dependencies on the impacted storage scale units may have experienced downstream impact in the form of availability issues, connection failures, or high latency. Engineers are investigating the root cause.</span>"),
		// 							Title: to.Ptr("Storage - West Europe"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type EmergingIssuesClientGetOptions added in v0.3.0

type EmergingIssuesClientGetOptions struct {
}

EmergingIssuesClientGetOptions contains the optional parameters for the EmergingIssuesClient.Get method.

type EmergingIssuesClientGetResponse added in v0.3.0

type EmergingIssuesClientGetResponse struct {
	// The Get EmergingIssues operation response.
	EmergingIssuesGetResult
}

EmergingIssuesClientGetResponse contains the response from method EmergingIssuesClient.Get.

type EmergingIssuesClientListOptions added in v0.3.0

type EmergingIssuesClientListOptions struct {
}

EmergingIssuesClientListOptions contains the optional parameters for the EmergingIssuesClient.NewListPager method.

type EmergingIssuesClientListResponse added in v0.3.0

type EmergingIssuesClientListResponse struct {
	// The list of emerging issues.
	EmergingIssueListResult
}

EmergingIssuesClientListResponse contains the response from method EmergingIssuesClient.NewListPager.

type EmergingIssuesGetResult

type EmergingIssuesGetResult struct {
	// The emerging issue entity properties.
	Properties *EmergingIssue

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

EmergingIssuesGetResult - The Get EmergingIssues operation response.

func (EmergingIssuesGetResult) MarshalJSON added in v1.2.0

func (e EmergingIssuesGetResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EmergingIssuesGetResult.

func (*EmergingIssuesGetResult) UnmarshalJSON added in v1.2.0

func (e *EmergingIssuesGetResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EmergingIssuesGetResult.

type Event added in v1.2.0

type Event struct {
	// Properties of event.
	Properties *EventProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

Event - Service health event

func (Event) MarshalJSON added in v1.2.0

func (e Event) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Event.

func (*Event) UnmarshalJSON added in v1.2.0

func (e *Event) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Event.

type EventClient added in v1.2.0

type EventClient struct {
	// contains filtered or unexported fields
}

EventClient contains the methods for the Event group. Don't use this type directly, use NewEventClient() instead.

Generated from API version 2025-05-01

func NewEventClient added in v1.2.0

func NewEventClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EventClient, error)

NewEventClient creates a new instance of EventClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*EventClient) FetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingID added in v1.4.0

FetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingID - Service health event details specific in the subscription by event tracking id. This can be used to fetch sensitive properties for Billing event type. If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDOptions contains the optional parameters for the EventClient.FetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingID method.
Example

Generated from example definition: 2025-05-01/Event_fetchBillingCommunicationDetailsBySubscriptionIdAndTrackingId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewEventClient().FetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingID(ctx, "eventTrackingId", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDResponse{
	// 	Event: armresourcehealth.Event{
	// 		Name: to.Ptr("{eventTrackingId}"),
	// 		Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"),
	// 		Properties: &armresourcehealth.EventProperties{
	// 			Article: &armresourcehealth.EventPropertiesArticle{
	// 				ArticleContent: to.Ptr("<html>Upcoming billing changes to your resources</html>"),
	// 			},
	// 			BillingID: to.Ptr("595959"),
	// 			CurrencyType: to.Ptr("USD"),
	// 			EnableChatWithUs: to.Ptr(false),
	// 			EnableMicrosoftSupport: to.Ptr(true),
	// 			EventLevel: to.Ptr(armresourcehealth.EventLevelValuesWarning),
	// 			EventSource: to.Ptr(armresourcehealth.EventSourceValuesServiceHealth),
	// 			EventSubType: to.Ptr(armresourcehealth.EventSubTypeValuesUnderbilling),
	// 			EventType: to.Ptr(armresourcehealth.EventTypeValuesBilling),
	// 			Faqs: []*armresourcehealth.Faq{
	// 				{
	// 					Answer: to.Ptr("This is an answer"),
	// 					LocaleCode: to.Ptr("en"),
	// 					Question: to.Ptr("This is a question"),
	// 				},
	// 			},
	// 			Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
	// 			HirStage: to.Ptr("resolved"),
	// 			Impact: []*armresourcehealth.Impact{
	// 				{
	// 					ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
	// 						{
	// 							ImpactedRegion: to.Ptr("Global"),
	// 							ImpactedSubscriptions: []*string{
	// 								to.Ptr("{subscriptionId}"),
	// 							},
	// 							ImpactedTenants: []*string{
	// 							},
	// 							LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 							Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 							Updates: []*armresourcehealth.Update{
	// 								{
	// 									Summary: to.Ptr("Upcoming billing changes to your resources."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 								},
	// 							},
	// 						},
	// 					},
	// 					ImpactedService: to.Ptr("Microsoft Cost Management"),
	// 					ImpactedServiceGUID: to.Ptr("80853877-1df8-40c2-9c79-44c0d1c95e01"),
	// 				},
	// 			},
	// 			ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-07-14T15:43:48.1203530Z"); return t}()),
	// 			ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-06-12T14:45:48.1203530Z"); return t}()),
	// 			IsEventSensitive: to.Ptr(false),
	// 			IsHIR: to.Ptr(false),
	// 			LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 			Level: to.Ptr(armresourcehealth.LevelValuesWarning),
	// 			Links: []*armresourcehealth.Link{
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
	// 					BladeName: to.Ptr("RequestRCABlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Request RCA"),
	// 						Value: to.Ptr("Request RCA"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"rcaRequested": "False",
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
	// 					BladeName: to.Ptr("AzureHealthBrowseBlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Sign up for updates"),
	// 						Value: to.Ptr("Sign up for updates"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 			},
	// 			NewRate: to.Ptr[float64](1),
	// 			OldRate: to.Ptr[float64](0.88),
	// 			Priority: to.Ptr[int32](2),
	// 			RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
	// 				Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
	// 					{
	// 						ActionText: to.Ptr("action 1"),
	// 						GroupID: to.Ptr[int32](23243),
	// 					},
	// 					{
	// 						ActionText: to.Ptr("action 2"),
	// 						GroupID: to.Ptr[int32](23432),
	// 					},
	// 				},
	// 				LocaleCode: to.Ptr("en"),
	// 				Message: to.Ptr("Recommended actions title"),
	// 			},
	// 			Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 			Summary: to.Ptr("Upcoming billing changes to your resources."),
	// 			Title: to.Ptr("Upcoming billing changes to your resources"),
	// 		},
	// 	},
	// }
}

func (*EventClient) FetchDetailsBySubscriptionIDAndTrackingID added in v1.2.0

FetchDetailsBySubscriptionIDAndTrackingID - Service health event details in the subscription by event tracking id. This can be used to fetch sensitive properties for Security Advisory events. Please see https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - EventClientFetchDetailsBySubscriptionIDAndTrackingIDOptions contains the optional parameters for the EventClient.FetchDetailsBySubscriptionIDAndTrackingID method.
Example

Generated from example definition: 2025-05-01/Event_fetchDetailsBySubscriptionIdAndTrackingId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewEventClient().FetchDetailsBySubscriptionIDAndTrackingID(ctx, "eventTrackingId", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.EventClientFetchDetailsBySubscriptionIDAndTrackingIDResponse{
	// 	Event: armresourcehealth.Event{
	// 		Name: to.Ptr("{eventTrackingId}"),
	// 		Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"),
	// 		Properties: &armresourcehealth.EventProperties{
	// 			Article: &armresourcehealth.EventPropertiesArticle{
	// 				ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
	// 			},
	// 			EnableChatWithUs: to.Ptr(false),
	// 			EnableMicrosoftSupport: to.Ptr(true),
	// 			EventLevel: to.Ptr(armresourcehealth.EventLevelValuesWarning),
	// 			EventSource: to.Ptr(armresourcehealth.EventSourceValuesResourceHealth),
	// 			EventTags: []*string{
	// 				to.Ptr("Action Recommended"),
	// 				to.Ptr("False Positive"),
	// 				to.Ptr("Preliminary PIR"),
	// 				to.Ptr("Final PIR"),
	// 			},
	// 			EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
	// 			Faqs: []*armresourcehealth.Faq{
	// 				{
	// 					Answer: to.Ptr("This is an answer"),
	// 					LocaleCode: to.Ptr("en"),
	// 					Question: to.Ptr("This is a question"),
	// 				},
	// 			},
	// 			Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
	// 			HirStage: to.Ptr("resolved"),
	// 			Impact: []*armresourcehealth.Impact{
	// 				{
	// 					ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
	// 						{
	// 							ImpactedRegion: to.Ptr("West US"),
	// 							ImpactedSubscriptions: []*string{
	// 								to.Ptr("{subscriptionId}"),
	// 							},
	// 							ImpactedTenants: []*string{
	// 							},
	// 							LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 							Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 							Updates: []*armresourcehealth.Update{
	// 								{
	// 									EventTags: []*string{
	// 										to.Ptr("Final PIR"),
	// 									},
	// 									Summary: to.Ptr("Update 3 - An outage alert is being investigated. More information will be provided as it is known."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 								},
	// 								{
	// 									EventTags: []*string{
	// 										to.Ptr("False Positive"),
	// 										to.Ptr("Preliminary PIR"),
	// 									},
	// 									Summary: to.Ptr("Update 2 - An outage alert is being investigated. More information will be provided as it is known."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T10:32:48.1203530Z"); return t}()),
	// 								},
	// 								{
	// 									EventTags: []*string{
	// 										to.Ptr("Action Recommended"),
	// 									},
	// 									Summary: to.Ptr("Update 1 - An outage alert is being investigated. More information will be provided as it is known."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T15:00:48.1203530Z"); return t}()),
	// 								},
	// 							},
	// 						},
	// 					},
	// 					ImpactedService: to.Ptr("Virtual Machines"),
	// 					ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
	// 				},
	// 			},
	// 			ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-14T15:43:48.1203530Z"); return t}()),
	// 			ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T14:45:48.1203530Z"); return t}()),
	// 			IsEventSensitive: to.Ptr(false),
	// 			IsHIR: to.Ptr(false),
	// 			LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 			Level: to.Ptr(armresourcehealth.LevelValuesWarning),
	// 			Links: []*armresourcehealth.Link{
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
	// 					BladeName: to.Ptr("RequestRCABlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Request RCA"),
	// 						Value: to.Ptr("Request RCA"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"rcaRequested": "False",
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
	// 					BladeName: to.Ptr("AzureHealthBrowseBlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Sign up for updates"),
	// 						Value: to.Ptr("Sign up for updates"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 			},
	// 			Priority: to.Ptr[int32](2),
	// 			RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
	// 				Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
	// 					{
	// 						ActionText: to.Ptr("action 1"),
	// 						GroupID: to.Ptr[int32](23243),
	// 					},
	// 					{
	// 						ActionText: to.Ptr("action 2"),
	// 						GroupID: to.Ptr[int32](23432),
	// 					},
	// 				},
	// 				LocaleCode: to.Ptr("en"),
	// 				Message: to.Ptr("Recommended actions title"),
	// 			},
	// 			Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 			Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
	// 			Title: to.Ptr("ACTIVE: Virtual machines in West US"),
	// 		},
	// 	},
	// }
}

func (*EventClient) FetchDetailsByTenantIDAndTrackingID added in v1.2.0

FetchDetailsByTenantIDAndTrackingID - Service health event details in the tenant by event tracking id. This can be used to fetch sensitive properties for Security Advisory events. Please see https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - EventClientFetchDetailsByTenantIDAndTrackingIDOptions contains the optional parameters for the EventClient.FetchDetailsByTenantIDAndTrackingID method.
Example

Generated from example definition: 2025-05-01/Event_fetchDetailsByTenantIdAndTrackingId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewEventClient().FetchDetailsByTenantIDAndTrackingID(ctx, "eventTrackingId", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.EventClientFetchDetailsByTenantIDAndTrackingIDResponse{
	// 	Event: armresourcehealth.Event{
	// 		Name: to.Ptr("{eventTrackingId}"),
	// 		Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"),
	// 		Properties: &armresourcehealth.EventProperties{
	// 			Article: &armresourcehealth.EventPropertiesArticle{
	// 				ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
	// 			},
	// 			EnableChatWithUs: to.Ptr(false),
	// 			EnableMicrosoftSupport: to.Ptr(true),
	// 			EventLevel: to.Ptr(armresourcehealth.EventLevelValuesInformational),
	// 			EventSource: to.Ptr(armresourcehealth.EventSourceValuesResourceHealth),
	// 			EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
	// 			Faqs: []*armresourcehealth.Faq{
	// 				{
	// 					Answer: to.Ptr("This is an answer"),
	// 					LocaleCode: to.Ptr("en"),
	// 					Question: to.Ptr("This is a question"),
	// 				},
	// 			},
	// 			Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
	// 			HirStage: to.Ptr("resolved"),
	// 			Impact: []*armresourcehealth.Impact{
	// 				{
	// 					ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
	// 						{
	// 							ImpactedRegion: to.Ptr("West US"),
	// 							ImpactedSubscriptions: []*string{
	// 							},
	// 							ImpactedTenants: []*string{
	// 								to.Ptr("00000000-0000-0000-0000-000000000000"),
	// 							},
	// 							LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:05:00Z"); return t}()),
	// 							Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 						},
	// 					},
	// 					ImpactedService: to.Ptr("Virtual Machines"),
	// 					ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
	// 				},
	// 			},
	// 			ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-08T00:00:00Z"); return t}()),
	// 			ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-07T00:00:00Z"); return t}()),
	// 			IsHIR: to.Ptr(false),
	// 			LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-08T00:00:00Z"); return t}()),
	// 			Level: to.Ptr(armresourcehealth.LevelValuesWarning),
	// 			Links: []*armresourcehealth.Link{
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
	// 					BladeName: to.Ptr("RequestRCABlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Request RCA"),
	// 						Value: to.Ptr("Request RCA"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"rcaRequested": "False",
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
	// 					BladeName: to.Ptr("AzureHealthBrowseBlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Sign up for updates"),
	// 						Value: to.Ptr("Sign up for updates"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 			},
	// 			Priority: to.Ptr[int32](2),
	// 			RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
	// 				Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
	// 					{
	// 						ActionText: to.Ptr("action 1"),
	// 						GroupID: to.Ptr[int32](23243),
	// 					},
	// 					{
	// 						ActionText: to.Ptr("action 2"),
	// 						GroupID: to.Ptr[int32](23432),
	// 					},
	// 				},
	// 				LocaleCode: to.Ptr("en"),
	// 				Message: to.Ptr("Recommended actions title"),
	// 			},
	// 			Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 			Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
	// 			Title: to.Ptr("ACTIVE: Virtual machines in West US"),
	// 		},
	// 	},
	// }
}

func (*EventClient) GetBySubscriptionIDAndTrackingID added in v1.2.0

GetBySubscriptionIDAndTrackingID - Service health event in the subscription by event tracking id If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - EventClientGetBySubscriptionIDAndTrackingIDOptions contains the optional parameters for the EventClient.GetBySubscriptionIDAndTrackingID method.
Example

Generated from example definition: 2025-05-01/Event_GetBySubscriptionIdAndTrackingId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewEventClient().GetBySubscriptionIDAndTrackingID(ctx, "eventTrackingId", &armresourcehealth.EventClientGetBySubscriptionIDAndTrackingIDOptions{
		Filter:         to.Ptr("properties/status eq 'Active'"),
		QueryStartTime: to.Ptr("5/12/2025")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.EventClientGetBySubscriptionIDAndTrackingIDResponse{
	// 	Event: armresourcehealth.Event{
	// 		Name: to.Ptr("{eventTrackingId}"),
	// 		Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"),
	// 		Properties: &armresourcehealth.EventProperties{
	// 			Article: &armresourcehealth.EventPropertiesArticle{
	// 				ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
	// 			},
	// 			EnableChatWithUs: to.Ptr(false),
	// 			EnableMicrosoftSupport: to.Ptr(true),
	// 			EventLevel: to.Ptr(armresourcehealth.EventLevelValuesWarning),
	// 			EventSource: to.Ptr(armresourcehealth.EventSourceValuesResourceHealth),
	// 			EventTags: []*string{
	// 				to.Ptr("Action Recommended"),
	// 				to.Ptr("False Positive"),
	// 				to.Ptr("Preliminary PIR"),
	// 				to.Ptr("Final PIR"),
	// 			},
	// 			EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
	// 			Faqs: []*armresourcehealth.Faq{
	// 				{
	// 					Answer: to.Ptr("This is an answer"),
	// 					LocaleCode: to.Ptr("en"),
	// 					Question: to.Ptr("This is a question"),
	// 				},
	// 			},
	// 			Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
	// 			HirStage: to.Ptr("resolved"),
	// 			Impact: []*armresourcehealth.Impact{
	// 				{
	// 					ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
	// 						{
	// 							ImpactedRegion: to.Ptr("West US"),
	// 							ImpactedSubscriptions: []*string{
	// 								to.Ptr("{subscriptionId}"),
	// 							},
	// 							ImpactedTenants: []*string{
	// 							},
	// 							LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 							Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 							Updates: []*armresourcehealth.Update{
	// 								{
	// 									EventTags: []*string{
	// 										to.Ptr("Final PIR"),
	// 									},
	// 									Summary: to.Ptr("Update 3 - An outage alert is being investigated. More information will be provided as it is known."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 								},
	// 								{
	// 									EventTags: []*string{
	// 										to.Ptr("False Positive"),
	// 										to.Ptr("Preliminary PIR"),
	// 									},
	// 									Summary: to.Ptr("Update 2 - An outage alert is being investigated. More information will be provided as it is known."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T10:32:48.1203530Z"); return t}()),
	// 								},
	// 								{
	// 									EventTags: []*string{
	// 										to.Ptr("Action Recommended"),
	// 									},
	// 									Summary: to.Ptr("Update 1 - An outage alert is being investigated. More information will be provided as it is known."),
	// 									UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T15:00:48.1203530Z"); return t}()),
	// 								},
	// 							},
	// 						},
	// 					},
	// 					ImpactedService: to.Ptr("Virtual Machines"),
	// 					ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
	// 				},
	// 			},
	// 			ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-14T15:43:48.1203530Z"); return t}()),
	// 			ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T14:45:48.1203530Z"); return t}()),
	// 			IsEventSensitive: to.Ptr(false),
	// 			IsHIR: to.Ptr(false),
	// 			LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
	// 			Level: to.Ptr(armresourcehealth.LevelValuesWarning),
	// 			Links: []*armresourcehealth.Link{
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
	// 					BladeName: to.Ptr("RequestRCABlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Request RCA"),
	// 						Value: to.Ptr("Request RCA"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"rcaRequested": "False",
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
	// 					BladeName: to.Ptr("AzureHealthBrowseBlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Sign up for updates"),
	// 						Value: to.Ptr("Sign up for updates"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 			},
	// 			Priority: to.Ptr[int32](2),
	// 			RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
	// 				Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
	// 					{
	// 						ActionText: to.Ptr("action 1"),
	// 						GroupID: to.Ptr[int32](23243),
	// 					},
	// 					{
	// 						ActionText: to.Ptr("action 2"),
	// 						GroupID: to.Ptr[int32](23432),
	// 					},
	// 				},
	// 				LocaleCode: to.Ptr("en"),
	// 				Message: to.Ptr("Recommended actions title"),
	// 			},
	// 			Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 			Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
	// 			Title: to.Ptr("ACTIVE: Virtual machines in West US"),
	// 		},
	// 	},
	// }
}

func (*EventClient) GetByTenantIDAndTrackingID added in v1.2.0

func (client *EventClient) GetByTenantIDAndTrackingID(ctx context.Context, eventTrackingID string, options *EventClientGetByTenantIDAndTrackingIDOptions) (EventClientGetByTenantIDAndTrackingIDResponse, error)

GetByTenantIDAndTrackingID - Service health event in the tenant by event tracking id If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - EventClientGetByTenantIDAndTrackingIDOptions contains the optional parameters for the EventClient.GetByTenantIDAndTrackingID method.
Example

Generated from example definition: 2025-05-01/Event_GetByTenantIdAndTrackingId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewEventClient().GetByTenantIDAndTrackingID(ctx, "eventTrackingId", &armresourcehealth.EventClientGetByTenantIDAndTrackingIDOptions{
		Filter:         to.Ptr("properties/status eq 'Active'"),
		QueryStartTime: to.Ptr("7/10/2022")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.EventClientGetByTenantIDAndTrackingIDResponse{
	// 	Event: armresourcehealth.Event{
	// 		Name: to.Ptr("{eventTrackingId}"),
	// 		Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"),
	// 		Properties: &armresourcehealth.EventProperties{
	// 			Article: &armresourcehealth.EventPropertiesArticle{
	// 				ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
	// 			},
	// 			EnableChatWithUs: to.Ptr(false),
	// 			EnableMicrosoftSupport: to.Ptr(true),
	// 			EventLevel: to.Ptr(armresourcehealth.EventLevelValuesInformational),
	// 			EventSource: to.Ptr(armresourcehealth.EventSourceValuesResourceHealth),
	// 			EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
	// 			Faqs: []*armresourcehealth.Faq{
	// 				{
	// 					Answer: to.Ptr("This is an answer"),
	// 					LocaleCode: to.Ptr("en"),
	// 					Question: to.Ptr("This is a question"),
	// 				},
	// 			},
	// 			Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
	// 			HirStage: to.Ptr("resolved"),
	// 			Impact: []*armresourcehealth.Impact{
	// 				{
	// 					ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
	// 						{
	// 							ImpactedRegion: to.Ptr("West US"),
	// 							ImpactedSubscriptions: []*string{
	// 							},
	// 							ImpactedTenants: []*string{
	// 								to.Ptr("00000000-0000-0000-0000-000000000000"),
	// 							},
	// 							LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:05:00Z"); return t}()),
	// 							Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 						},
	// 					},
	// 					ImpactedService: to.Ptr("Virtual Machines"),
	// 					ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
	// 				},
	// 			},
	// 			ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-08T00:00:00Z"); return t}()),
	// 			ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-07T00:00:00Z"); return t}()),
	// 			IsHIR: to.Ptr(false),
	// 			LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-08T00:00:00Z"); return t}()),
	// 			Level: to.Ptr(armresourcehealth.LevelValuesWarning),
	// 			Links: []*armresourcehealth.Link{
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
	// 					BladeName: to.Ptr("RequestRCABlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Request RCA"),
	// 						Value: to.Ptr("Request RCA"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"rcaRequested": "False",
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 				{
	// 					Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
	// 					BladeName: to.Ptr("AzureHealthBrowseBlade"),
	// 					DisplayText: &armresourcehealth.LinkDisplayText{
	// 						LocalizedValue: to.Ptr("Sign up for updates"),
	// 						Value: to.Ptr("Sign up for updates"),
	// 					},
	// 					ExtensionName: to.Ptr("Microsoft_Azure_Health"),
	// 					Parameters: map[string]any{
	// 						"trackingId": "{eventTrackingId}",
	// 					},
	// 				},
	// 			},
	// 			Priority: to.Ptr[int32](2),
	// 			RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
	// 				Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
	// 					{
	// 						ActionText: to.Ptr("action 1"),
	// 						GroupID: to.Ptr[int32](23243),
	// 					},
	// 					{
	// 						ActionText: to.Ptr("action 2"),
	// 						GroupID: to.Ptr[int32](23432),
	// 					},
	// 				},
	// 				LocaleCode: to.Ptr("en"),
	// 				Message: to.Ptr("Recommended actions title"),
	// 			},
	// 			Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
	// 			Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
	// 			Title: to.Ptr("ACTIVE: Virtual machines in West US"),
	// 		},
	// 	},
	// }
}

type EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDOptions added in v1.4.0

type EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDOptions struct {
}

EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDOptions contains the optional parameters for the EventClient.FetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingID method.

type EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDResponse added in v1.4.0

type EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDResponse struct {
	// Service health event
	Event
}

EventClientFetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingIDResponse contains the response from method EventClient.FetchBilllingCommunicationDetailsBySubscriptionIDAndTrackingID.

type EventClientFetchDetailsBySubscriptionIDAndTrackingIDOptions added in v1.2.0

type EventClientFetchDetailsBySubscriptionIDAndTrackingIDOptions struct {
}

EventClientFetchDetailsBySubscriptionIDAndTrackingIDOptions contains the optional parameters for the EventClient.FetchDetailsBySubscriptionIDAndTrackingID method.

type EventClientFetchDetailsBySubscriptionIDAndTrackingIDResponse added in v1.2.0

type EventClientFetchDetailsBySubscriptionIDAndTrackingIDResponse struct {
	// Service health event
	Event
}

EventClientFetchDetailsBySubscriptionIDAndTrackingIDResponse contains the response from method EventClient.FetchDetailsBySubscriptionIDAndTrackingID.

type EventClientFetchDetailsByTenantIDAndTrackingIDOptions added in v1.2.0

type EventClientFetchDetailsByTenantIDAndTrackingIDOptions struct {
}

EventClientFetchDetailsByTenantIDAndTrackingIDOptions contains the optional parameters for the EventClient.FetchDetailsByTenantIDAndTrackingID method.

type EventClientFetchDetailsByTenantIDAndTrackingIDResponse added in v1.2.0

type EventClientFetchDetailsByTenantIDAndTrackingIDResponse struct {
	// Service health event
	Event
}

EventClientFetchDetailsByTenantIDAndTrackingIDResponse contains the response from method EventClient.FetchDetailsByTenantIDAndTrackingID.

type EventClientGetBySubscriptionIDAndTrackingIDOptions added in v1.2.0

type EventClientGetBySubscriptionIDAndTrackingIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string

	// Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime
	// = 7/24/2020 OR queryStartTime=7%2F24%2F2020
	QueryStartTime *string
}

EventClientGetBySubscriptionIDAndTrackingIDOptions contains the optional parameters for the EventClient.GetBySubscriptionIDAndTrackingID method.

type EventClientGetBySubscriptionIDAndTrackingIDResponse added in v1.2.0

type EventClientGetBySubscriptionIDAndTrackingIDResponse struct {
	// Service health event
	Event
}

EventClientGetBySubscriptionIDAndTrackingIDResponse contains the response from method EventClient.GetBySubscriptionIDAndTrackingID.

type EventClientGetByTenantIDAndTrackingIDOptions added in v1.2.0

type EventClientGetByTenantIDAndTrackingIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string

	// Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime
	// = 7/24/2020 OR queryStartTime=7%2F24%2F2020
	QueryStartTime *string
}

EventClientGetByTenantIDAndTrackingIDOptions contains the optional parameters for the EventClient.GetByTenantIDAndTrackingID method.

type EventClientGetByTenantIDAndTrackingIDResponse added in v1.2.0

type EventClientGetByTenantIDAndTrackingIDResponse struct {
	// Service health event
	Event
}

EventClientGetByTenantIDAndTrackingIDResponse contains the response from method EventClient.GetByTenantIDAndTrackingID.

type EventImpactedResource added in v1.2.0

type EventImpactedResource struct {
	// Properties of impacted resource.
	Properties *EventImpactedResourceProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

EventImpactedResource - Impacted resource for an event.

func (EventImpactedResource) MarshalJSON added in v1.2.0

func (e EventImpactedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventImpactedResource.

func (*EventImpactedResource) UnmarshalJSON added in v1.2.0

func (e *EventImpactedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventImpactedResource.

type EventImpactedResourceListResult added in v1.2.0

type EventImpactedResourceListResult struct {
	// REQUIRED; The list of eventImpactedResources.
	Value []*EventImpactedResource

	// The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of impacted resource.
	NextLink *string
}

EventImpactedResourceListResult - The List of eventImpactedResources operation response.

func (EventImpactedResourceListResult) MarshalJSON added in v1.2.0

func (e EventImpactedResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventImpactedResourceListResult.

func (*EventImpactedResourceListResult) UnmarshalJSON added in v1.2.0

func (e *EventImpactedResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventImpactedResourceListResult.

type EventImpactedResourceProperties added in v1.2.0

type EventImpactedResourceProperties struct {
	// Additional information.
	Info []*KeyValueItem

	// READ-ONLY; Impacted resource region name.
	TargetRegion *string

	// READ-ONLY; Identity for resource within Microsoft cloud.
	TargetResourceID *string

	// READ-ONLY; Resource type within Microsoft cloud.
	TargetResourceType *string
}

EventImpactedResourceProperties - Properties of impacted resource.

func (EventImpactedResourceProperties) MarshalJSON added in v1.2.0

func (e EventImpactedResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventImpactedResourceProperties.

func (*EventImpactedResourceProperties) UnmarshalJSON added in v1.2.0

func (e *EventImpactedResourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventImpactedResourceProperties.

type EventLevelValues added in v1.2.0

type EventLevelValues string

EventLevelValues - Level of event.

const (
	// EventLevelValuesCritical - Critical
	EventLevelValuesCritical EventLevelValues = "Critical"
	// EventLevelValuesError - Error
	EventLevelValuesError EventLevelValues = "Error"
	// EventLevelValuesInformational - Informational
	EventLevelValuesInformational EventLevelValues = "Informational"
	// EventLevelValuesWarning - Warning
	EventLevelValuesWarning EventLevelValues = "Warning"
)

func PossibleEventLevelValuesValues added in v1.2.0

func PossibleEventLevelValuesValues() []EventLevelValues

PossibleEventLevelValuesValues returns the possible values for the EventLevelValues const type.

type EventProperties added in v1.2.0

type EventProperties struct {
	// Additional information
	AdditionalInformation *EventPropertiesAdditionalInformation

	// Article of event.
	Article *EventPropertiesArticle

	// Billing identifier information.
	BillingID *string

	// Billing currency type information. Example: USD, CAD
	CurrencyType *string

	// Contains the communication message for the event, that could include summary, root cause and other details. Use fetchEventDetails
	// endpoint to get description of sensitive events.
	Description *string

	// duration in seconds
	Duration *int32

	// Tells if we want to enable or disable Microsoft Support for this event.
	EnableChatWithUs *bool

	// Tells if we want to enable or disable Microsoft Support for this event.
	EnableMicrosoftSupport *bool

	// Level of event.
	EventLevel *EventLevelValues

	// Source of event.
	EventSource *EventSourceValues

	// Sub-type of event.
	EventSubType *EventSubTypeValues

	// A list of metadata tags associated with the event. Possible values include:
	// -Action Recommended: Action may be required by you to avoid possible disruptions or mitigate risks for your services. It
	// is recommended to evaluate these actions and the potential impact on your services.
	// - False Positive: After investigation, we've determined your service is healthy and service issues did not impact your
	// services as originally communicated.
	// - Preliminary PIR: For our largest, most impactful service issues a Preliminary Post Incident Review (PIR) is published
	// generally within 72 hours of mitigation, to summarize what we have learned so far from the still-in-progress investigation.
	// - Final PIR: For service issues, a Final Post Incident Review (PIR) may be published to provide additional details or learnings.
	// Sometimes this requires us to complete an internal retrospective, generally within 14 days of mitigation.
	EventTags []*string

	// Type of event.
	EventType *EventTypeValues

	// The id of the Incident
	ExternalIncidentID *string

	// Frequently asked questions for the service health event.
	Faqs []*Faq

	// Header text of event.
	Header *string

	// Stage for HIR Document
	HirStage *string

	// List services impacted by the service health event.
	Impact []*Impact

	// It provides the Timestamp for when the health impacting event resolved.
	ImpactMitigationTime *time.Time

	// It provides the Timestamp for when the health impacting event started.
	ImpactStartTime *time.Time

	// The type of the impact
	ImpactType *string

	// If true the event may contains sensitive data. Use the post events/{trackingId}/fetchEventDetails endpoint to fetch sensitive
	// data see https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access
	IsEventSensitive *bool

	// It provides information if the event is High incident rate event or not.
	IsHIR *bool

	// It provides the Timestamp for when the health impacting event was last updated.
	LastUpdateTime *time.Time

	// Level of insight.
	Level *LevelValues

	// Useful links of event.
	Links []*Link

	// Billing rate change information - new rate
	NewRate *float64

	// Billing rate change information - old rate
	OldRate *float64

	// Is true if the event is platform initiated.
	PlatformInitiated *bool

	// Priority level of the event. Has value from 0 to 23. 0 is the highest priority. Service issue events have higher priority
	// followed by planned maintenance and health advisory. Critical events have higher priority followed by error, warning and
	// informational. Furthermore, active events have higher priority than resolved.
	Priority *int32

	// The reason for the Incident
	Reason *string

	// Recommended actions of event.
	RecommendedActions *EventPropertiesRecommendedActions

	// Current status of event.
	Status *EventStatusValues

	// Summary text of event. Use fetchEventDetails endpoint to get summary of sensitive events.
	Summary *string

	// Title text of event.
	Title *string
}

EventProperties - Properties of event.

func (EventProperties) MarshalJSON added in v1.2.0

func (e EventProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventProperties.

func (*EventProperties) UnmarshalJSON added in v1.2.0

func (e *EventProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventProperties.

type EventPropertiesAdditionalInformation added in v1.2.0

type EventPropertiesAdditionalInformation struct {
	// Additional information Message
	Message *string
}

EventPropertiesAdditionalInformation - Additional information

func (EventPropertiesAdditionalInformation) MarshalJSON added in v1.2.0

func (e EventPropertiesAdditionalInformation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventPropertiesAdditionalInformation.

func (*EventPropertiesAdditionalInformation) UnmarshalJSON added in v1.2.0

func (e *EventPropertiesAdditionalInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventPropertiesAdditionalInformation.

type EventPropertiesArticle added in v1.2.0

type EventPropertiesArticle struct {
	// Article content of event.
	ArticleContent *string

	// Article Id
	ArticleID *string

	// It provides a map of parameter name and value
	Parameters any
}

EventPropertiesArticle - Article of event.

func (EventPropertiesArticle) MarshalJSON added in v1.2.0

func (e EventPropertiesArticle) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventPropertiesArticle.

func (*EventPropertiesArticle) UnmarshalJSON added in v1.2.0

func (e *EventPropertiesArticle) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventPropertiesArticle.

type EventPropertiesRecommendedActions added in v1.2.0

type EventPropertiesRecommendedActions struct {
	// Recommended actions for the service health event.
	Actions []*EventPropertiesRecommendedActionsItem

	// Recommended action locale for the service health event.
	LocaleCode *string

	// Recommended action title for the service health event.
	Message *string
}

EventPropertiesRecommendedActions - Recommended actions of event.

func (EventPropertiesRecommendedActions) MarshalJSON added in v1.2.0

func (e EventPropertiesRecommendedActions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventPropertiesRecommendedActions.

func (*EventPropertiesRecommendedActions) UnmarshalJSON added in v1.2.0

func (e *EventPropertiesRecommendedActions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventPropertiesRecommendedActions.

type EventPropertiesRecommendedActionsItem added in v1.2.0

type EventPropertiesRecommendedActionsItem struct {
	// Recommended action text
	ActionText *string

	// Recommended action group Id for the service health event.
	GroupID *int32
}

EventPropertiesRecommendedActionsItem - Recommended action for the service health event.

func (EventPropertiesRecommendedActionsItem) MarshalJSON added in v1.2.0

func (e EventPropertiesRecommendedActionsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventPropertiesRecommendedActionsItem.

func (*EventPropertiesRecommendedActionsItem) UnmarshalJSON added in v1.2.0

func (e *EventPropertiesRecommendedActionsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventPropertiesRecommendedActionsItem.

type EventSourceValues added in v1.2.0

type EventSourceValues string

EventSourceValues - Source of event.

const (
	// EventSourceValuesResourceHealth - ResourceHealth
	EventSourceValuesResourceHealth EventSourceValues = "ResourceHealth"
	// EventSourceValuesServiceHealth - ServiceHealth
	EventSourceValuesServiceHealth EventSourceValues = "ServiceHealth"
)

func PossibleEventSourceValuesValues added in v1.2.0

func PossibleEventSourceValuesValues() []EventSourceValues

PossibleEventSourceValuesValues returns the possible values for the EventSourceValues const type.

type EventStatusValues added in v1.2.0

type EventStatusValues string

EventStatusValues - Current status of event.

const (
	// EventStatusValuesActive - Active
	EventStatusValuesActive EventStatusValues = "Active"
	// EventStatusValuesResolved - Resolved
	EventStatusValuesResolved EventStatusValues = "Resolved"
)

func PossibleEventStatusValuesValues added in v1.2.0

func PossibleEventStatusValuesValues() []EventStatusValues

PossibleEventStatusValuesValues returns the possible values for the EventStatusValues const type.

type EventSubTypeValues added in v1.4.0

type EventSubTypeValues string

EventSubTypeValues - Sub-type of event.

const (
	// EventSubTypeValuesForeignExchangeRateChange - ForeignExchangeRateChange
	EventSubTypeValuesForeignExchangeRateChange EventSubTypeValues = "ForeignExchangeRateChange"
	// EventSubTypeValuesMeterIDChanges - MeterIDChanges
	EventSubTypeValuesMeterIDChanges EventSubTypeValues = "MeterIDChanges"
	// EventSubTypeValuesOverbilling - Overbilling
	EventSubTypeValuesOverbilling EventSubTypeValues = "Overbilling"
	// EventSubTypeValuesPriceChanges - PriceChanges
	EventSubTypeValuesPriceChanges EventSubTypeValues = "PriceChanges"
	// EventSubTypeValuesRetirement - Retirement
	EventSubTypeValuesRetirement EventSubTypeValues = "Retirement"
	// EventSubTypeValuesTaxChanges - TaxChanges
	EventSubTypeValuesTaxChanges EventSubTypeValues = "TaxChanges"
	// EventSubTypeValuesUnauthorizedPartyAbuse - UnauthorizedPartyAbuse
	EventSubTypeValuesUnauthorizedPartyAbuse EventSubTypeValues = "UnauthorizedPartyAbuse"
	// EventSubTypeValuesUnderbilling - Underbilling
	EventSubTypeValuesUnderbilling EventSubTypeValues = "Underbilling"
)

func PossibleEventSubTypeValuesValues added in v1.4.0

func PossibleEventSubTypeValuesValues() []EventSubTypeValues

PossibleEventSubTypeValuesValues returns the possible values for the EventSubTypeValues const type.

type EventTypeValues added in v1.2.0

type EventTypeValues string

EventTypeValues - Type of event.

const (
	// EventTypeValuesBilling - Billing
	EventTypeValuesBilling EventTypeValues = "Billing"
	// EventTypeValuesEmergingIssues - EmergingIssues
	EventTypeValuesEmergingIssues EventTypeValues = "EmergingIssues"
	// EventTypeValuesHealthAdvisory - HealthAdvisory
	EventTypeValuesHealthAdvisory EventTypeValues = "HealthAdvisory"
	// EventTypeValuesPlannedMaintenance - PlannedMaintenance
	EventTypeValuesPlannedMaintenance EventTypeValues = "PlannedMaintenance"
	// EventTypeValuesRCA - RCA
	EventTypeValuesRCA EventTypeValues = "RCA"
	// EventTypeValuesSecurityAdvisory - SecurityAdvisory
	EventTypeValuesSecurityAdvisory EventTypeValues = "SecurityAdvisory"
	// EventTypeValuesServiceIssue - ServiceIssue
	EventTypeValuesServiceIssue EventTypeValues = "ServiceIssue"
)

func PossibleEventTypeValuesValues added in v1.2.0

func PossibleEventTypeValuesValues() []EventTypeValues

PossibleEventTypeValuesValues returns the possible values for the EventTypeValues const type.

type Events added in v1.2.0

type Events struct {
	// REQUIRED; The Event items on this page
	Value []*Event

	// The link to the next page of items
	NextLink *string
}

Events - The List events operation response.

func (Events) MarshalJSON added in v1.2.0

func (e Events) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Events.

func (*Events) UnmarshalJSON added in v1.2.0

func (e *Events) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Events.

type EventsClient added in v1.2.0

type EventsClient struct {
	// contains filtered or unexported fields
}

EventsClient contains the methods for the Events group. Don't use this type directly, use NewEventsClient() instead.

Generated from API version 2025-05-01

func NewEventsClient added in v1.2.0

func NewEventsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EventsClient, error)

NewEventsClient creates a new instance of EventsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*EventsClient) NewListBySingleResourcePager added in v1.2.0

func (client *EventsClient) NewListBySingleResourcePager(resourceURI string, options *EventsClientListBySingleResourceOptions) *runtime.Pager[EventsClientListBySingleResourceResponse]

NewListBySingleResourcePager - Lists current service health events for given resource.

  • resourceURI - The fully qualified Azure Resource manager identifier of the resource.
  • options - EventsClientListBySingleResourceOptions contains the optional parameters for the EventsClient.NewListBySingleResourcePager method.
Example

Generated from example definition: 2025-05-01/Events_ListBySingleResource.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewEventsClient().NewListBySingleResourcePager("subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.Compute/virtualMachines/rhctestenvV1PI", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.EventsClientListBySingleResourceResponse{
		// 	Events: armresourcehealth.Events{
		// 		NextLink: to.Ptr("https://management.azure.com/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.Compute/virtualMachines/rhctestenvV1PI/providers/Microsoft.ResourceHealth/events?api-version=2025-05-01&$skipToken=OpaquePageNumber"),
		// 		Value: []*armresourcehealth.Event{
		// 			{
		// 				Name: to.Ptr("BC_1-FXZ"),
		// 				Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ"),
		// 				Properties: &armresourcehealth.EventProperties{
		// 					Article: &armresourcehealth.EventPropertiesArticle{
		// 						ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
		// 					},
		// 					EnableChatWithUs: to.Ptr(false),
		// 					EnableMicrosoftSupport: to.Ptr(true),
		// 					EventLevel: to.Ptr(armresourcehealth.EventLevelValuesWarning),
		// 					EventSource: to.Ptr(armresourcehealth.EventSourceValuesResourceHealth),
		// 					EventTags: []*string{
		// 						to.Ptr("Action Recommended"),
		// 						to.Ptr("False Positive"),
		// 						to.Ptr("Preliminary PIR"),
		// 						to.Ptr("Final PIR"),
		// 					},
		// 					EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
		// 					Faqs: []*armresourcehealth.Faq{
		// 						{
		// 							Answer: to.Ptr("This is an answer"),
		// 							LocaleCode: to.Ptr("en"),
		// 							Question: to.Ptr("This is a question"),
		// 						},
		// 					},
		// 					Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
		// 					HirStage: to.Ptr("active"),
		// 					Impact: []*armresourcehealth.Impact{
		// 						{
		// 							ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
		// 								{
		// 									ImpactedRegion: to.Ptr("West US"),
		// 									ImpactedSubscriptions: []*string{
		// 										to.Ptr("{subscriptionId}"),
		// 									},
		// 									LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
		// 									Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
		// 									Updates: []*armresourcehealth.Update{
		// 										{
		// 											EventTags: []*string{
		// 												to.Ptr("Final PIR"),
		// 											},
		// 											Summary: to.Ptr("Update 3 - An outage alert is being investigated. More information will be provided as it is known."),
		// 											UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
		// 										},
		// 										{
		// 											EventTags: []*string{
		// 												to.Ptr("False Positive"),
		// 												to.Ptr("Preliminary PIR"),
		// 											},
		// 											Summary: to.Ptr("Update 2 - An outage alert is being investigated. More information will be provided as it is known."),
		// 											UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T10:32:48.1203530Z"); return t}()),
		// 										},
		// 										{
		// 											EventTags: []*string{
		// 												to.Ptr("Action Recommended"),
		// 											},
		// 											Summary: to.Ptr("Update 1 - An outage alert is being investigated. More information will be provided as it is known."),
		// 											UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T15:00:48.1203530Z"); return t}()),
		// 										},
		// 									},
		// 								},
		// 							},
		// 							ImpactedService: to.Ptr("Virtual Machines"),
		// 							ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
		// 						},
		// 					},
		// 					ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-14T15:43:48.1203530Z"); return t}()),
		// 					ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T14:45:48.1203530Z"); return t}()),
		// 					IsEventSensitive: to.Ptr(false),
		// 					IsHIR: to.Ptr(false),
		// 					LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
		// 					Level: to.Ptr(armresourcehealth.LevelValuesWarning),
		// 					Links: []*armresourcehealth.Link{
		// 						{
		// 							Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
		// 							BladeName: to.Ptr("RequestRCABlade"),
		// 							DisplayText: &armresourcehealth.LinkDisplayText{
		// 								LocalizedValue: to.Ptr("Request RCA"),
		// 								Value: to.Ptr("Request RCA"),
		// 							},
		// 							ExtensionName: to.Ptr("Microsoft_Azure_Health"),
		// 							Parameters: map[string]any{
		// 								"rcaRequested": "False",
		// 								"trackingId": "BC_1-FXZ",
		// 							},
		// 						},
		// 						{
		// 							Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
		// 							BladeName: to.Ptr("AzureHealthBrowseBlade"),
		// 							DisplayText: &armresourcehealth.LinkDisplayText{
		// 								LocalizedValue: to.Ptr("Sign up for updates"),
		// 								Value: to.Ptr("Sign up for updates"),
		// 							},
		// 							ExtensionName: to.Ptr("Microsoft_Azure_Health"),
		// 							Parameters: map[string]any{
		// 								"trackingId": "BC_1-FXZ",
		// 							},
		// 						},
		// 					},
		// 					Priority: to.Ptr[int32](2),
		// 					RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
		// 						Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
		// 							{
		// 								ActionText: to.Ptr("action 1"),
		// 								GroupID: to.Ptr[int32](23243),
		// 							},
		// 							{
		// 								ActionText: to.Ptr("action 2"),
		// 								GroupID: to.Ptr[int32](23432),
		// 							},
		// 						},
		// 						LocaleCode: to.Ptr("en"),
		// 						Message: to.Ptr("Recommended actions title"),
		// 					},
		// 					Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
		// 					Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
		// 					Title: to.Ptr("ACTIVE: Virtual machines in West US"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

func (*EventsClient) NewListBySubscriptionIDPager added in v1.2.0

NewListBySubscriptionIDPager - Lists service health events in the subscription.

  • options - EventsClientListBySubscriptionIDOptions contains the optional parameters for the EventsClient.NewListBySubscriptionIDPager method.
Example

Generated from example definition: 2025-05-01/Events_ListBySubscriptionId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewEventsClient().NewListBySubscriptionIDPager(&armresourcehealth.EventsClientListBySubscriptionIDOptions{
		Filter:         to.Ptr("service eq 'Virtual Machines' or region eq 'West US'"),
		QueryStartTime: to.Ptr("5/12/2025")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.EventsClientListBySubscriptionIDResponse{
		// 	Events: armresourcehealth.Events{
		// 		NextLink: to.Ptr("https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.ResourceHealth/events?api-version=2025-05-01&$skipToken=OpaquePageNumber"),
		// 		Value: []*armresourcehealth.Event{
		// 			{
		// 				Name: to.Ptr("BC_1-FXZ"),
		// 				Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ"),
		// 				Properties: &armresourcehealth.EventProperties{
		// 					Article: &armresourcehealth.EventPropertiesArticle{
		// 						ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
		// 					},
		// 					EnableChatWithUs: to.Ptr(false),
		// 					EnableMicrosoftSupport: to.Ptr(true),
		// 					EventLevel: to.Ptr(armresourcehealth.EventLevelValuesWarning),
		// 					EventSource: to.Ptr(armresourcehealth.EventSourceValuesResourceHealth),
		// 					EventTags: []*string{
		// 						to.Ptr("Action Recommended"),
		// 						to.Ptr("False Positive"),
		// 						to.Ptr("Preliminary PIR"),
		// 						to.Ptr("Final PIR"),
		// 					},
		// 					EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
		// 					Faqs: []*armresourcehealth.Faq{
		// 						{
		// 							Answer: to.Ptr("This is an answer"),
		// 							LocaleCode: to.Ptr("en"),
		// 							Question: to.Ptr("This is a question"),
		// 						},
		// 					},
		// 					Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
		// 					HirStage: to.Ptr("resolved"),
		// 					Impact: []*armresourcehealth.Impact{
		// 						{
		// 							ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
		// 								{
		// 									ImpactedRegion: to.Ptr("West US"),
		// 									ImpactedSubscriptions: []*string{
		// 										to.Ptr("{subscriptionId}"),
		// 									},
		// 									ImpactedTenants: []*string{
		// 									},
		// 									LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
		// 									Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
		// 									Updates: []*armresourcehealth.Update{
		// 										{
		// 											EventTags: []*string{
		// 												to.Ptr("Final PIR"),
		// 											},
		// 											Summary: to.Ptr("Update 3 - An outage alert is being investigated. More information will be provided as it is known."),
		// 											UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
		// 										},
		// 										{
		// 											EventTags: []*string{
		// 												to.Ptr("False Positive"),
		// 												to.Ptr("Preliminary PIR"),
		// 											},
		// 											Summary: to.Ptr("Update 2 - An outage alert is being investigated. More information will be provided as it is known."),
		// 											UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T10:32:48.1203530Z"); return t}()),
		// 										},
		// 										{
		// 											EventTags: []*string{
		// 												to.Ptr("Action Recommended"),
		// 											},
		// 											Summary: to.Ptr("Update 1 - An outage alert is being investigated. More information will be provided as it is known."),
		// 											UpdateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T15:00:48.1203530Z"); return t}()),
		// 										},
		// 									},
		// 								},
		// 							},
		// 							ImpactedService: to.Ptr("Virtual Machines"),
		// 							ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
		// 						},
		// 					},
		// 					ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-14T15:43:48.1203530Z"); return t}()),
		// 					ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-12T14:45:48.1203530Z"); return t}()),
		// 					IsEventSensitive: to.Ptr(false),
		// 					IsHIR: to.Ptr(false),
		// 					LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-13T15:43:48.1203530Z"); return t}()),
		// 					Level: to.Ptr(armresourcehealth.LevelValuesWarning),
		// 					Links: []*armresourcehealth.Link{
		// 						{
		// 							Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
		// 							BladeName: to.Ptr("RequestRCABlade"),
		// 							DisplayText: &armresourcehealth.LinkDisplayText{
		// 								LocalizedValue: to.Ptr("Request RCA"),
		// 								Value: to.Ptr("Request RCA"),
		// 							},
		// 							ExtensionName: to.Ptr("Microsoft_Azure_Health"),
		// 							Parameters: map[string]any{
		// 								"rcaRequested": "False",
		// 								"trackingId": "BC_1-FXZ",
		// 							},
		// 						},
		// 						{
		// 							Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
		// 							BladeName: to.Ptr("AzureHealthBrowseBlade"),
		// 							DisplayText: &armresourcehealth.LinkDisplayText{
		// 								LocalizedValue: to.Ptr("Sign up for updates"),
		// 								Value: to.Ptr("Sign up for updates"),
		// 							},
		// 							ExtensionName: to.Ptr("Microsoft_Azure_Health"),
		// 							Parameters: map[string]any{
		// 								"trackingId": "BC_1-FXZ",
		// 							},
		// 						},
		// 					},
		// 					Priority: to.Ptr[int32](2),
		// 					RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
		// 						Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
		// 							{
		// 								ActionText: to.Ptr("action 1"),
		// 								GroupID: to.Ptr[int32](23243),
		// 							},
		// 							{
		// 								ActionText: to.Ptr("action 2"),
		// 								GroupID: to.Ptr[int32](23432),
		// 							},
		// 						},
		// 						LocaleCode: to.Ptr("en"),
		// 						Message: to.Ptr("Recommended actions title"),
		// 					},
		// 					Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
		// 					Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
		// 					Title: to.Ptr("ACTIVE: Virtual machines in West US"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

func (*EventsClient) NewListByTenantIDPager added in v1.2.0

NewListByTenantIDPager - Lists current service health events in the tenant.

  • options - EventsClientListByTenantIDOptions contains the optional parameters for the EventsClient.NewListByTenantIDPager method.
Example

Generated from example definition: 2025-05-01/Events_ListByTenantId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewEventsClient().NewListByTenantIDPager(&armresourcehealth.EventsClientListByTenantIDOptions{
		Filter:         to.Ptr("service eq 'Virtual Machines' or region eq 'West US'"),
		QueryStartTime: to.Ptr("7/24/2020")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.EventsClientListByTenantIDResponse{
		// 	Events: armresourcehealth.Events{
		// 		NextLink: to.Ptr("https://management.azure.com/providers/Microsoft.ResourceHealth/events?api-version=2025-05-01&$skipToken=OpaquePageNumber"),
		// 		Value: []*armresourcehealth.Event{
		// 			{
		// 				Name: to.Ptr("BC_1-FXZ"),
		// 				Type: to.Ptr("/providers/Microsoft.ResourceHealth/events"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ"),
		// 				Properties: &armresourcehealth.EventProperties{
		// 					Article: &armresourcehealth.EventPropertiesArticle{
		// 						ArticleContent: to.Ptr("<html>An outage alert is being investigated. More information will be provided as it is known</html>"),
		// 					},
		// 					EnableChatWithUs: to.Ptr(false),
		// 					EnableMicrosoftSupport: to.Ptr(true),
		// 					EventLevel: to.Ptr(armresourcehealth.EventLevelValuesInformational),
		// 					EventSource: to.Ptr(armresourcehealth.EventSourceValuesServiceHealth),
		// 					EventType: to.Ptr(armresourcehealth.EventTypeValuesServiceIssue),
		// 					Faqs: []*armresourcehealth.Faq{
		// 						{
		// 							Answer: to.Ptr("This is an answer"),
		// 							LocaleCode: to.Ptr("en"),
		// 							Question: to.Ptr("This is a question"),
		// 						},
		// 					},
		// 					Header: to.Ptr("Your service might have been impacted by an Azure service issue"),
		// 					HirStage: to.Ptr("resolved"),
		// 					Impact: []*armresourcehealth.Impact{
		// 						{
		// 							ImpactedRegions: []*armresourcehealth.ImpactedServiceRegion{
		// 								{
		// 									ImpactedRegion: to.Ptr("West US"),
		// 									ImpactedSubscriptions: []*string{
		// 									},
		// 									ImpactedTenants: []*string{
		// 										to.Ptr("00000000-0000-0000-0000-000000000000"),
		// 									},
		// 									LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:05:00Z"); return t}()),
		// 									Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
		// 								},
		// 							},
		// 							ImpactedService: to.Ptr("Virtual Machines"),
		// 							ImpactedServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
		// 						},
		// 					},
		// 					ImpactMitigationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-08T00:00:00Z"); return t}()),
		// 					ImpactStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-07T00:00:00Z"); return t}()),
		// 					IsHIR: to.Ptr(false),
		// 					LastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-08T00:00:00Z"); return t}()),
		// 					Level: to.Ptr(armresourcehealth.LevelValuesWarning),
		// 					Links: []*armresourcehealth.Link{
		// 						{
		// 							Type: to.Ptr(armresourcehealth.LinkTypeValuesHyperlink),
		// 							BladeName: to.Ptr("RequestRCABlade"),
		// 							DisplayText: &armresourcehealth.LinkDisplayText{
		// 								LocalizedValue: to.Ptr("Request RCA"),
		// 								Value: to.Ptr("Request RCA"),
		// 							},
		// 							ExtensionName: to.Ptr("Microsoft_Azure_Health"),
		// 							Parameters: map[string]any{
		// 								"rcaRequested": "False",
		// 								"trackingId": "BC_1-FXZ",
		// 							},
		// 						},
		// 						{
		// 							Type: to.Ptr(armresourcehealth.LinkTypeValuesButton),
		// 							BladeName: to.Ptr("AzureHealthBrowseBlade"),
		// 							DisplayText: &armresourcehealth.LinkDisplayText{
		// 								LocalizedValue: to.Ptr("Sign up for updates"),
		// 								Value: to.Ptr("Sign up for updates"),
		// 							},
		// 							ExtensionName: to.Ptr("Microsoft_Azure_Health"),
		// 							Parameters: map[string]any{
		// 								"trackingId": "BC_1-FXZ",
		// 							},
		// 						},
		// 					},
		// 					Priority: to.Ptr[int32](2),
		// 					RecommendedActions: &armresourcehealth.EventPropertiesRecommendedActions{
		// 						Actions: []*armresourcehealth.EventPropertiesRecommendedActionsItem{
		// 							{
		// 								ActionText: to.Ptr("action 1"),
		// 								GroupID: to.Ptr[int32](23243),
		// 							},
		// 							{
		// 								ActionText: to.Ptr("action 2"),
		// 								GroupID: to.Ptr[int32](23432),
		// 							},
		// 						},
		// 						LocaleCode: to.Ptr("en"),
		// 						Message: to.Ptr("Recommended actions title"),
		// 					},
		// 					Status: to.Ptr(armresourcehealth.EventStatusValuesActive),
		// 					Summary: to.Ptr("An outage alert is being investigated. More information will be provided as it is known."),
		// 					Title: to.Ptr("ACTIVE: Virtual machines in West US"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type EventsClientListBySingleResourceOptions added in v1.2.0

type EventsClientListBySingleResourceOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

EventsClientListBySingleResourceOptions contains the optional parameters for the EventsClient.NewListBySingleResourcePager method.

type EventsClientListBySingleResourceResponse added in v1.2.0

type EventsClientListBySingleResourceResponse struct {
	// The List events operation response.
	Events
}

EventsClientListBySingleResourceResponse contains the response from method EventsClient.NewListBySingleResourcePager.

type EventsClientListBySubscriptionIDOptions added in v1.2.0

type EventsClientListBySubscriptionIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string

	// Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime
	// = 7/24/2020 OR queryStartTime=7%2F24%2F2020
	QueryStartTime *string
}

EventsClientListBySubscriptionIDOptions contains the optional parameters for the EventsClient.NewListBySubscriptionIDPager method.

type EventsClientListBySubscriptionIDResponse added in v1.2.0

type EventsClientListBySubscriptionIDResponse struct {
	// The List events operation response.
	Events
}

EventsClientListBySubscriptionIDResponse contains the response from method EventsClient.NewListBySubscriptionIDPager.

type EventsClientListByTenantIDOptions added in v1.2.0

type EventsClientListByTenantIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string

	// Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime
	// = 7/24/2020 OR queryStartTime=7%2F24%2F2020
	QueryStartTime *string
}

EventsClientListByTenantIDOptions contains the optional parameters for the EventsClient.NewListByTenantIDPager method.

type EventsClientListByTenantIDResponse added in v1.2.0

type EventsClientListByTenantIDResponse struct {
	// The List events operation response.
	Events
}

EventsClientListByTenantIDResponse contains the response from method EventsClient.NewListByTenantIDPager.

type Faq added in v1.2.0

type Faq struct {
	// FAQ answer for the service health event.
	Answer *string

	// FAQ locale for the service health event.
	LocaleCode *string

	// FAQ question for the service health event.
	Question *string
}

Faq - Frequently asked question for the service health event

func (Faq) MarshalJSON added in v1.2.0

func (f Faq) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Faq.

func (*Faq) UnmarshalJSON added in v1.2.0

func (f *Faq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Faq.

type Impact added in v1.2.0

type Impact struct {
	// List regions impacted by the service health event.
	ImpactedRegions []*ImpactedServiceRegion

	// Impacted service name.
	ImpactedService *string

	// Impacted service guid. This is the permanent identifier for the impacted service.
	ImpactedServiceGUID *string
}

Impact - Azure service impacted by the service health event.

func (Impact) MarshalJSON added in v1.2.0

func (i Impact) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Impact.

func (*Impact) UnmarshalJSON added in v1.2.0

func (i *Impact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Impact.

type ImpactedRegion

type ImpactedRegion struct {
	// The impacted region id.
	ID *string

	// The impacted region name.
	Name *string
}

ImpactedRegion - Object of impacted region.

func (ImpactedRegion) MarshalJSON added in v1.1.0

func (i ImpactedRegion) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ImpactedRegion.

func (*ImpactedRegion) UnmarshalJSON added in v1.1.0

func (i *ImpactedRegion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ImpactedRegion.

type ImpactedResourcesClient added in v1.2.0

type ImpactedResourcesClient struct {
	// contains filtered or unexported fields
}

ImpactedResourcesClient contains the methods for the ImpactedResources group. Don't use this type directly, use NewImpactedResourcesClient() instead.

Generated from API version 2025-05-01

func NewImpactedResourcesClient added in v1.2.0

func NewImpactedResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImpactedResourcesClient, error)

NewImpactedResourcesClient creates a new instance of ImpactedResourcesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*ImpactedResourcesClient) Get added in v1.2.0

func (client *ImpactedResourcesClient) Get(ctx context.Context, eventTrackingID string, impactedResourceName string, options *ImpactedResourcesClientGetOptions) (ImpactedResourcesClientGetResponse, error)

Get - Gets the specific impacted resource in the subscription by an event. If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • impactedResourceName - Name of the Impacted Resource.
  • options - ImpactedResourcesClientGetOptions contains the optional parameters for the ImpactedResourcesClient.Get method.
Example

Generated from example definition: 2025-05-01/ImpactedResources_Get.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewImpactedResourcesClient().Get(ctx, "BC_1-FXZ", "abc-123-ghj-456", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.ImpactedResourcesClientGetResponse{
	// 	EventImpactedResource: armresourcehealth.EventImpactedResource{
	// 		Name: to.Ptr("abc-123-ghj-456"),
	// 		Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
	// 		ID: to.Ptr("/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456"),
	// 		Properties: &armresourcehealth.EventImpactedResourceProperties{
	// 			TargetRegion: to.Ptr("westus"),
	// 			TargetResourceID: to.Ptr("/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/TEST/providers/Microsoft.Compute/virtualMachines/testvm"),
	// 			TargetResourceType: to.Ptr("Microsoft.Compute/VirtualMachines"),
	// 		},
	// 	},
	// }
}

func (*ImpactedResourcesClient) GetByTenantID added in v1.2.0

func (client *ImpactedResourcesClient) GetByTenantID(ctx context.Context, eventTrackingID string, impactedResourceName string, options *ImpactedResourcesClientGetByTenantIDOptions) (ImpactedResourcesClientGetByTenantIDResponse, error)

GetByTenantID - Gets the specific impacted resource in the tenant by an event. If the operation fails it returns an *azcore.ResponseError type.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • impactedResourceName - Name of the Impacted Resource.
  • options - ImpactedResourcesClientGetByTenantIDOptions contains the optional parameters for the ImpactedResourcesClient.GetByTenantID method.
Example

Generated from example definition: 2025-05-01/ImpactedResources_GetByTenantId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewImpactedResourcesClient().GetByTenantID(ctx, "BC_1-FXZ", "abc-123-ghj-456", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.ImpactedResourcesClientGetByTenantIDResponse{
	// 	EventImpactedResource: armresourcehealth.EventImpactedResource{
	// 		Name: to.Ptr("abc-123-ghj-456"),
	// 		Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
	// 		ID: to.Ptr("providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456"),
	// 		Properties: &armresourcehealth.EventImpactedResourceProperties{
	// 			TargetRegion: to.Ptr("westus"),
	// 			TargetResourceID: to.Ptr("{resourceId}"),
	// 			TargetResourceType: to.Ptr("Microsoft.Compute/VirtualMachines"),
	// 		},
	// 	},
	// }
}

func (*ImpactedResourcesClient) NewListBySubscriptionIDAndEventIDPager added in v1.2.0

NewListBySubscriptionIDAndEventIDPager - Lists impacted resources in the subscription by an event.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - ImpactedResourcesClientListBySubscriptionIDAndEventIDOptions contains the optional parameters for the ImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager method.
Example

Generated from example definition: 2025-05-01/ImpactedResources_ListBySubscriptionId_ListByEventId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewImpactedResourcesClient().NewListBySubscriptionIDAndEventIDPager("BC_1-FXZ", &armresourcehealth.ImpactedResourcesClientListBySubscriptionIDAndEventIDOptions{
		Filter: to.Ptr("targetRegion eq 'westus'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.ImpactedResourcesClientListBySubscriptionIDAndEventIDResponse{
		// 	EventImpactedResourceListResult: armresourcehealth.EventImpactedResourceListResult{
		// 		NextLink: to.Ptr("{originalRequestUrl}?$skipToken={OpaquePageNumber}"),
		// 		Value: []*armresourcehealth.EventImpactedResource{
		// 			{
		// 				Name: to.Ptr("abc-123-ghj-456"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					TargetRegion: to.Ptr("westus"),
		// 					TargetResourceID: to.Ptr("/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/TEST/providers/Microsoft.Compute/virtualMachines/testvm"),
		// 					TargetResourceType: to.Ptr("Microsoft.Compute/VirtualMachines"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("jkl-901-hgy-445"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/jkl-901-hgy-445"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					Info: []*armresourcehealth.KeyValueItem{
		// 						{
		// 							Key: to.Ptr("ContainerGrp"),
		// 							Value: to.Ptr("xyz"),
		// 						},
		// 						{
		// 							Key: to.Ptr("UserGuid"),
		// 							Value: to.Ptr("guid"),
		// 						},
		// 						{
		// 							Key: to.Ptr("AplicationID"),
		// 							Value: to.Ptr("Abc"),
		// 						},
		// 						{
		// 							Key: to.Ptr("UserPrincipalObjectId"),
		// 							Value: to.Ptr("def"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("wer-345-tyu-789"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					TargetRegion: to.Ptr("westus"),
		// 					TargetResourceID: to.Ptr("/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/Dev2/providers/Microsoft.Compute/virtualMachines/testvm2"),
		// 					TargetResourceType: to.Ptr("Microsoft.Compute/VirtualMachines"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

func (*ImpactedResourcesClient) NewListByTenantIDAndEventIDPager added in v1.2.0

NewListByTenantIDAndEventIDPager - Lists impacted resources in the tenant by an event.

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - ImpactedResourcesClientListByTenantIDAndEventIDOptions contains the optional parameters for the ImpactedResourcesClient.NewListByTenantIDAndEventIDPager method.
Example

Generated from example definition: 2025-05-01/ImpactedResources_ListByTenantId_ListByEventId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewImpactedResourcesClient().NewListByTenantIDAndEventIDPager("BC_1-FXZ", &armresourcehealth.ImpactedResourcesClientListByTenantIDAndEventIDOptions{
		Filter: to.Ptr("targetRegion eq 'westus'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.ImpactedResourcesClientListByTenantIDAndEventIDResponse{
		// 	EventImpactedResourceListResult: armresourcehealth.EventImpactedResourceListResult{
		// 		NextLink: to.Ptr("{originalRequestUrl}?$skipToken={OpaquePageNumber}"),
		// 		Value: []*armresourcehealth.EventImpactedResource{
		// 			{
		// 				Name: to.Ptr("abc-123-ghj-456"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					TargetRegion: to.Ptr("westus"),
		// 					TargetResourceID: to.Ptr("{resourceId-1}"),
		// 					TargetResourceType: to.Ptr("Microsoft.Compute/VirtualMachines"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("wer-345-tyu-789"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					TargetRegion: to.Ptr("westus"),
		// 					TargetResourceID: to.Ptr("{resourceId-2}"),
		// 					TargetResourceType: to.Ptr("Microsoft.Compute/VirtualMachines"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type ImpactedResourcesClientGetByTenantIDOptions added in v1.2.0

type ImpactedResourcesClientGetByTenantIDOptions struct {
}

ImpactedResourcesClientGetByTenantIDOptions contains the optional parameters for the ImpactedResourcesClient.GetByTenantID method.

type ImpactedResourcesClientGetByTenantIDResponse added in v1.2.0

type ImpactedResourcesClientGetByTenantIDResponse struct {
	// Impacted resource for an event.
	EventImpactedResource
}

ImpactedResourcesClientGetByTenantIDResponse contains the response from method ImpactedResourcesClient.GetByTenantID.

type ImpactedResourcesClientGetOptions added in v1.2.0

type ImpactedResourcesClientGetOptions struct {
}

ImpactedResourcesClientGetOptions contains the optional parameters for the ImpactedResourcesClient.Get method.

type ImpactedResourcesClientGetResponse added in v1.2.0

type ImpactedResourcesClientGetResponse struct {
	// Impacted resource for an event.
	EventImpactedResource
}

ImpactedResourcesClientGetResponse contains the response from method ImpactedResourcesClient.Get.

type ImpactedResourcesClientListBySubscriptionIDAndEventIDOptions added in v1.2.0

type ImpactedResourcesClientListBySubscriptionIDAndEventIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

ImpactedResourcesClientListBySubscriptionIDAndEventIDOptions contains the optional parameters for the ImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager method.

type ImpactedResourcesClientListBySubscriptionIDAndEventIDResponse added in v1.2.0

type ImpactedResourcesClientListBySubscriptionIDAndEventIDResponse struct {
	// The List of eventImpactedResources operation response.
	EventImpactedResourceListResult
}

ImpactedResourcesClientListBySubscriptionIDAndEventIDResponse contains the response from method ImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager.

type ImpactedResourcesClientListByTenantIDAndEventIDOptions added in v1.2.0

type ImpactedResourcesClientListByTenantIDAndEventIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

ImpactedResourcesClientListByTenantIDAndEventIDOptions contains the optional parameters for the ImpactedResourcesClient.NewListByTenantIDAndEventIDPager method.

type ImpactedResourcesClientListByTenantIDAndEventIDResponse added in v1.2.0

type ImpactedResourcesClientListByTenantIDAndEventIDResponse struct {
	// The List of eventImpactedResources operation response.
	EventImpactedResourceListResult
}

ImpactedResourcesClientListByTenantIDAndEventIDResponse contains the response from method ImpactedResourcesClient.NewListByTenantIDAndEventIDPager.

type ImpactedServiceRegion added in v1.2.0

type ImpactedServiceRegion struct {
	// Impacted region name.
	ImpactedRegion *string

	// List subscription impacted by the service health event.
	ImpactedSubscriptions []*string

	// List tenant impacted by the service health event.
	ImpactedTenants []*string

	// It provides the Timestamp for when the last update for the service health event.
	LastUpdateTime *time.Time

	// Current status of event in the region.
	Status *EventStatusValues

	// List of updates for given service health event. Use fetchEventDetails endpoint to get updates of sensitive events.
	Updates []*Update
}

ImpactedServiceRegion - Azure region impacted by the service health event.

func (ImpactedServiceRegion) MarshalJSON added in v1.2.0

func (i ImpactedServiceRegion) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ImpactedServiceRegion.

func (*ImpactedServiceRegion) UnmarshalJSON added in v1.2.0

func (i *ImpactedServiceRegion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ImpactedServiceRegion.

type IssueNameParameter added in v1.2.0

type IssueNameParameter string
const (
	// IssueNameParameterDefault - default
	IssueNameParameterDefault IssueNameParameter = "default"
)

func PossibleIssueNameParameterValues added in v1.2.0

func PossibleIssueNameParameterValues() []IssueNameParameter

PossibleIssueNameParameterValues returns the possible values for the IssueNameParameter const type.

type KeyValueItem added in v1.2.0

type KeyValueItem struct {
	// READ-ONLY; Key of tuple.
	Key *string

	// READ-ONLY; Value of tuple.
	Value *string
}

KeyValueItem - Key value tuple.

func (KeyValueItem) MarshalJSON added in v1.2.0

func (k KeyValueItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyValueItem.

func (*KeyValueItem) UnmarshalJSON added in v1.2.0

func (k *KeyValueItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KeyValueItem.

type LevelValues added in v1.2.0

type LevelValues string

LevelValues - Level of insight.

const (
	// LevelValuesCritical - Critical
	LevelValuesCritical LevelValues = "Critical"
	// LevelValuesWarning - Warning
	LevelValuesWarning LevelValues = "Warning"
)

func PossibleLevelValuesValues added in v1.2.0

func PossibleLevelValuesValues() []LevelValues

PossibleLevelValuesValues returns the possible values for the LevelValues const type.

type Link struct {
	// It provides the name of portal extension blade to produce link for given service health event.
	BladeName *string

	// Display text of link.
	DisplayText *LinkDisplayText

	// It provides the name of portal extension to produce link for given service health event.
	ExtensionName *string

	// It provides a map of parameter name and value for portal extension blade to produce lik for given service health event.
	Parameters any

	// Type of link.
	Type *LinkTypeValues
}

Link - Useful links for service health event.

func (Link) MarshalJSON added in v1.2.0

func (l Link) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Link.

func (*Link) UnmarshalJSON added in v1.2.0

func (l *Link) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Link.

type LinkDisplayText added in v1.2.0

type LinkDisplayText struct {
	// Localized display text of link.
	LocalizedValue *string

	// Display text of link.
	Value *string
}

LinkDisplayText - Display text of link.

func (LinkDisplayText) MarshalJSON added in v1.2.0

func (l LinkDisplayText) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LinkDisplayText.

func (*LinkDisplayText) UnmarshalJSON added in v1.2.0

func (l *LinkDisplayText) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LinkDisplayText.

type LinkTypeValues added in v1.2.0

type LinkTypeValues string

LinkTypeValues - Type of link.

const (
	// LinkTypeValuesButton - Button
	LinkTypeValuesButton LinkTypeValues = "Button"
	// LinkTypeValuesHyperlink - Hyperlink
	LinkTypeValuesHyperlink LinkTypeValues = "Hyperlink"
)

func PossibleLinkTypeValuesValues added in v1.2.0

func PossibleLinkTypeValuesValues() []LinkTypeValues

PossibleLinkTypeValuesValues returns the possible values for the LinkTypeValues const type.

type MetadataClient added in v1.2.0

type MetadataClient struct {
	// contains filtered or unexported fields
}

MetadataClient contains the methods for the Metadata group. Don't use this type directly, use NewMetadataClient() instead.

Generated from API version 2025-05-01

func NewMetadataClient added in v1.2.0

func NewMetadataClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*MetadataClient, error)

NewMetadataClient creates a new instance of MetadataClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*MetadataClient) GetEntity added in v1.2.0

GetEntity - Gets the list of metadata entities. If the operation fails it returns an *azcore.ResponseError type.

  • name - Name of metadata entity.
  • options - MetadataClientGetEntityOptions contains the optional parameters for the MetadataClient.GetEntity method.
Example

Generated from example definition: 2025-05-01/Metadata_GetEntity.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewMetadataClient().GetEntity(ctx, "status", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.MetadataClientGetEntityResponse{
	// 	MetadataEntity: armresourcehealth.MetadataEntity{
	// 		Name: to.Ptr("status"),
	// 		Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
	// 		ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/status"),
	// 		Properties: &armresourcehealth.MetadataEntityProperties{
	// 			ApplicableScenarios: []*armresourcehealth.Scenario{
	// 				to.Ptr(armresourcehealth.ScenarioAlerts),
	// 			},
	// 			DisplayName: to.Ptr("Status"),
	// 			SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
	// 				{
	// 					DisplayName: to.Ptr("Active"),
	// 					ID: to.Ptr("Active"),
	// 				},
	// 				{
	// 					DisplayName: to.Ptr("Resolved"),
	// 					ID: to.Ptr("Resolved"),
	// 				},
	// 				{
	// 					DisplayName: to.Ptr("In Progress"),
	// 					ID: to.Ptr("In Progress"),
	// 				},
	// 				{
	// 					DisplayName: to.Ptr("Updated"),
	// 					ID: to.Ptr("Updated"),
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

func (*MetadataClient) NewListPager added in v1.2.0

NewListPager - Gets the list of metadata entities.

  • options - MetadataClientListOptions contains the optional parameters for the MetadataClient.NewListPager method.
Example

Generated from example definition: 2025-05-01/Metadata_List.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewMetadataClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.MetadataClientListResponse{
		// 	MetadataEntityListResult: armresourcehealth.MetadataEntityListResult{
		// 		NextLink: to.Ptr("string"),
		// 		Value: []*armresourcehealth.MetadataEntity{
		// 			{
		// 				Name: to.Ptr("status"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/status"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					ApplicableScenarios: []*armresourcehealth.Scenario{
		// 						to.Ptr(armresourcehealth.ScenarioAlerts),
		// 					},
		// 					DisplayName: to.Ptr("Status"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Active"),
		// 							ID: to.Ptr("Active"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Resolved"),
		// 							ID: to.Ptr("Resolved"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("In Progress"),
		// 							ID: to.Ptr("In Progress"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Updated"),
		// 							ID: to.Ptr("Updated"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("level"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/level"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					ApplicableScenarios: []*armresourcehealth.Scenario{
		// 						to.Ptr(armresourcehealth.ScenarioAlerts),
		// 					},
		// 					DisplayName: to.Ptr("Level"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Informational"),
		// 							ID: to.Ptr("Informational"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Critical"),
		// 							ID: to.Ptr("Critical"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("cause"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/cause"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					ApplicableScenarios: []*armresourcehealth.Scenario{
		// 						to.Ptr(armresourcehealth.ScenarioAlerts),
		// 					},
		// 					DisplayName: to.Ptr("Cause"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Platform Initiated"),
		// 							ID: to.Ptr("PlatformInitiated"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("User Initiated"),
		// 							ID: to.Ptr("UserInitiated"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Unknown"),
		// 							ID: to.Ptr("Unknown"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("previousHealthStatus"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/previousHealthStatus"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					ApplicableScenarios: []*armresourcehealth.Scenario{
		// 						to.Ptr(armresourcehealth.ScenarioAlerts),
		// 					},
		// 					DisplayName: to.Ptr("Previous Health Status"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Available"),
		// 							ID: to.Ptr("Available"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Unavailable"),
		// 							ID: to.Ptr("Unavailable"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Degraded"),
		// 							ID: to.Ptr("Degraded"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Unknown"),
		// 							ID: to.Ptr("Unknown"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("currentHealthStatus"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/currentHealthStatus"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					ApplicableScenarios: []*armresourcehealth.Scenario{
		// 						to.Ptr(armresourcehealth.ScenarioAlerts),
		// 					},
		// 					DisplayName: to.Ptr("Current Health Status"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Available"),
		// 							ID: to.Ptr("Available"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Unavailable"),
		// 							ID: to.Ptr("Unavailable"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Degraded"),
		// 							ID: to.Ptr("Degraded"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Unknown"),
		// 							ID: to.Ptr("Unknown"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("supportedResourceType"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/supportedResourceType"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					DisplayName: to.Ptr("Supported Resource Type"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Prometheus Rule Groups"),
		// 							ID: to.Ptr("Microsoft.AlertsManagement/prometheusRuleGroups"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Analysis Services"),
		// 							ID: to.Ptr("Microsoft.AnalysisServices/servers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("API Management service"),
		// 							ID: to.Ptr("Microsoft.ApiManagement/service"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.AppPlatform/Spring"),
		// 							ID: to.Ptr("Microsoft.AppPlatform/Spring"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Explorer Cluster"),
		// 							ID: to.Ptr("Microsoft.Kusto/Clusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("microsoft.fluidrelay/fluidrelayservers"),
		// 							ID: to.Ptr("microsoft.fluidrelay/fluidrelayservers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("AKS cluster"),
		// 							ID: to.Ptr("microsoft.ContainerService/managedClusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Dashboard/grafana"),
		// 							ID: to.Ptr("Microsoft.Dashboard/grafana"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Monitor Workspaces"),
		// 							ID: to.Ptr("Microsoft.Monitor/Accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Purview"),
		// 							ID: to.Ptr("Microsoft.Purview/accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("ARO cluster"),
		// 							ID: to.Ptr("Microsoft.RedHatOpenShift/openShiftClusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.SignalRService/SignalR"),
		// 							ID: to.Ptr("Microsoft.SignalRService/SignalR"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.SignalRService/SignalR/replicas"),
		// 							ID: to.Ptr("Microsoft.SignalRService/SignalR/replicas"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.SignalRService/WebPubSub"),
		// 							ID: to.Ptr("Microsoft.SignalRService/WebPubSub"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("microsoft.storagemover/storageMovers"),
		// 							ID: to.Ptr("microsoft.storagemover/storageMovers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure VMware Solution"),
		// 							ID: to.Ptr("Microsoft.AVS/PrivateClouds"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Batch account"),
		// 							ID: to.Ptr("Microsoft.Batch/batchAccounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Redis cache"),
		// 							ID: to.Ptr("Microsoft.Cache/Redis"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cdn profile"),
		// 							ID: to.Ptr("Microsoft.Cdn/profiles"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cloud services (classic)"),
		// 							ID: to.Ptr("Microsoft.ClassicCompute/DomainNames"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual machine (classic)"),
		// 							ID: to.Ptr("Microsoft.ClassicCompute/virtualMachines"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services account"),
		// 							ID: to.Ptr("Microsoft.CognitiveServices/accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Dedicated Host"),
		// 							ID: to.Ptr("Microsoft.Compute/hostGroups/hosts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual machine"),
		// 							ID: to.Ptr("Microsoft.Compute/virtualMachines"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual machine scale sets"),
		// 							ID: to.Ptr("Microsoft.Compute/virtualMachineScaleSets"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("microsoft.connectedvmwarevsphere/vcenters"),
		// 							ID: to.Ptr("microsoft.connectedvmwarevsphere/vcenters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cosmos DB"),
		// 							ID: to.Ptr("Microsoft.Documentdb/databaseaccounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Data factory"),
		// 							ID: to.Ptr("Microsoft.DataFactory/factories"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Data Lake Analytics account"),
		// 							ID: to.Ptr("Microsoft.DataLakeAnalytics/accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Data Lake Store account"),
		// 							ID: to.Ptr("Microsoft.DataLakeStore/accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database Migration Service"),
		// 							ID: to.Ptr("Microsoft.DataMigration/services"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.DataProtection/BackupVaults"),
		// 							ID: to.Ptr("Microsoft.DataProtection/BackupVaults"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Share account"),
		// 							ID: to.Ptr("Microsoft.DataShare/accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for MariaDB servers"),
		// 							ID: to.Ptr("Microsoft.DBforMariaDB/servers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for MySQL flexible servers"),
		// 							ID: to.Ptr("Microsoft.DBforMySQL/flexibleServers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for MySQL servers"),
		// 							ID: to.Ptr("Microsoft.DBforMySQL/servers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for PostgreSQL Flexible Server"),
		// 							ID: to.Ptr("Microsoft.DBforPostgreSQL/flexibleservers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for PostgreSQL servers"),
		// 							ID: to.Ptr("Microsoft.DBforPostgreSQL/servers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2"),
		// 							ID: to.Ptr("Microsoft.DBforPostgreSQL/serverGroupsv2"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("IoT Hub"),
		// 							ID: to.Ptr("Microsoft.Devices/IotHubs"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Digital Twins"),
		// 							ID: to.Ptr("Microsoft.DigitalTwins/DigitalTwinsInstances"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Defender External Attack Surface Management workspace"),
		// 							ID: to.Ptr("Microsoft.Easm/workspaces"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Event Hub"),
		// 							ID: to.Ptr("Microsoft.EventHub/namespaces"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.ExtendedLocation/customLocations"),
		// 							ID: to.Ptr("Microsoft.ExtendedLocation/customLocations"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("HDInsight clusters"),
		// 							ID: to.Ptr("Microsoft.HdInsight/clusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"),
		// 							ID: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Arc enabled servers"),
		// 							ID: to.Ptr("Microsoft.HybridCompute/machines"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.HybridNetwork/devices"),
		// 							ID: to.Ptr("Microsoft.HybridNetwork/devices"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.HybridNetwork/networkFunctions"),
		// 							ID: to.Ptr("Microsoft.HybridNetwork/networkFunctions"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Log Search Alert Rules"),
		// 							ID: to.Ptr("Microsoft.Insights/scheduledQueryRules"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("IoT Central Application"),
		// 							ID: to.Ptr("Microsoft.IoTCentral/IoTApps"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Key vault"),
		// 							ID: to.Ptr("Microsoft.KeyVault/vaults"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Arc enabled Kubernetes"),
		// 							ID: to.Ptr("Microsoft.Kubernetes/connectedClusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Machine Learning Studio web services"),
		// 							ID: to.Ptr("Microsoft.MachineLearning/webServices"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Media service"),
		// 							ID: to.Ptr("Microsoft.media/mediaservices"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Packet Core"),
		// 							ID: to.Ptr("Microsoft.MobileNetwork/packetcoreControlPlanes"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Application Gateway"),
		// 							ID: to.Ptr("Microsoft.Network/applicationGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/bastionHosts"),
		// 							ID: to.Ptr("Microsoft.Network/bastionHosts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("VPN Connection"),
		// 							ID: to.Ptr("Microsoft.Network/Connections"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/dnsResolvers/inboundEndpoints"),
		// 							ID: to.Ptr("Microsoft.Network/dnsResolvers/inboundEndpoints"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/dnsResolvers"),
		// 							ID: to.Ptr("Microsoft.Network/dnsResolvers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/dnsResolvers/outboundEndpoints"),
		// 							ID: to.Ptr("Microsoft.Network/dnsResolvers/outboundEndpoints"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/dnszones"),
		// 							ID: to.Ptr("Microsoft.Network/dnszones"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("ExpressRoute circuit"),
		// 							ID: to.Ptr("Microsoft.Network/expressRouteCircuits"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Express RouteGateways"),
		// 							ID: to.Ptr("Microsoft.Network/ExpressRouteGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Firewall"),
		// 							ID: to.Ptr("Microsoft.Network/azureFirewalls"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Front Door"),
		// 							ID: to.Ptr("Microsoft.Network/frontdoors"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Load balancer"),
		// 							ID: to.Ptr("Microsoft.Network/LoadBalancers"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/NATGateways"),
		// 							ID: to.Ptr("Microsoft.Network/NATGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Network Virtual Appliance"),
		// 							ID: to.Ptr("Microsoft.Network/networkVirtualAppliances"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/p2sVpnGateways"),
		// 							ID: to.Ptr("Microsoft.Network/p2sVpnGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Traffic Manager profile"),
		// 							ID: to.Ptr("Microsoft.Network/trafficmanagerprofiles"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual Hub"),
		// 							ID: to.Ptr("Microsoft.Network/virtualHubs"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("VPN Gateway"),
		// 							ID: to.Ptr("Microsoft.Network/virtualNetworkGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/VpnGateways/VpnConnections"),
		// 							ID: to.Ptr("Microsoft.Network/VpnGateways/VpnConnections"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/vpnGateways"),
		// 							ID: to.Ptr("Microsoft.Network/vpnGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Network/VpnGateways/VpnConnections/VpnLinkConnections"),
		// 							ID: to.Ptr("Microsoft.Network/VpnGateways/VpnConnections/VpnLinkConnections"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Notification Hub namespace"),
		// 							ID: to.Ptr("Microsoft.NotificationHubs/Namespaces"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Log Analytics workspace"),
		// 							ID: to.Ptr("Microsoft.OperationalInsights/workspaces"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Orbital/contactprofiles"),
		// 							ID: to.Ptr("Microsoft.Orbital/contactprofiles"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Orbital/spacecrafts"),
		// 							ID: to.Ptr("Microsoft.Orbital/spacecrafts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Power BI Embedded"),
		// 							ID: to.Ptr("Microsoft.PowerBIDedicated/capacities"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.RecoveryServices/vaults"),
		// 							ID: to.Ptr("Microsoft.RecoveryServices/vaults"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.ResourceConnector/appliances"),
		// 							ID: to.Ptr("Microsoft.ResourceConnector/appliances"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("SCOM Managed instance"),
		// 							ID: to.Ptr("Microsoft.SCOM/managedInstances"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Search service"),
		// 							ID: to.Ptr("Microsoft.Search/searchServices"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Service Bus"),
		// 							ID: to.Ptr("Microsoft.ServiceBus/namespaces"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Service Fabric cluster"),
		// 							ID: to.Ptr("Microsoft.ServiceFabric/clusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.ServiceFabric/managedClusters"),
		// 							ID: to.Ptr("Microsoft.ServiceFabric/managedClusters"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Managed database"),
		// 							ID: to.Ptr("Microsoft.Sql/managedInstances/databases"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Managed instance"),
		// 							ID: to.Ptr("Microsoft.Sql/managedInstances"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("SQL database"),
		// 							ID: to.Ptr("Microsoft.Sql/servers/databases"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Storage account"),
		// 							ID: to.Ptr("Microsoft.Storage/storageAccounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.StorageCache/caches"),
		// 							ID: to.Ptr("Microsoft.StorageCache/caches"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Stream Analytics job"),
		// 							ID: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.Synapse/workspaces"),
		// 							ID: to.Ptr("Microsoft.Synapse/workspaces"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.VideoIndexer/accounts"),
		// 							ID: to.Ptr("Microsoft.VideoIndexer/accounts"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft.VoiceServices/CommunicationsGateways"),
		// 							ID: to.Ptr("Microsoft.VoiceServices/CommunicationsGateways"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("App Service plan"),
		// 							ID: to.Ptr("Microsoft.Web/serverFarms"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Website"),
		// 							ID: to.Ptr("Microsoft.Web/sites"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Monitor for SAP solutions"),
		// 							ID: to.Ptr("Microsoft.Workloads/monitors"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("supportedEventTypes"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/supportedEventTypes"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					DisplayName: to.Ptr("Supported Service Health Event Types"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Planned Maintenance"),
		// 							ID: to.Ptr("Maintenance"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Health Advisories"),
		// 							ID: to.Ptr("Informational"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Security Advisories"),
		// 							ID: to.Ptr("Security"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Health Advisories"),
		// 							ID: to.Ptr("ActionRequired"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Service Issue"),
		// 							ID: to.Ptr("Incident"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("supportedEventTags"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/supportedEventTags"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					DisplayName: to.Ptr("Supported Service Health Event Tags"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Action Recommended"),
		// 							ID: to.Ptr("Action Recommended"),
		// 							Priority: to.Ptr[int32](0),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Final PIR"),
		// 							ID: to.Ptr("Final PIR"),
		// 							Priority: to.Ptr[int32](1),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Preliminary PIR"),
		// 							ID: to.Ptr("Preliminary PIR"),
		// 							Priority: to.Ptr[int32](2),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("False Positive"),
		// 							ID: to.Ptr("False Positive"),
		// 							Priority: to.Ptr[int32](3),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("supportedServices"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/metadata"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/metadata/supportedServices"),
		// 				Properties: &armresourcehealth.MetadataEntityProperties{
		// 					DisplayName: to.Ptr("Supported Service Health Services"),
		// 					SupportedValues: []*armresourcehealth.MetadataSupportedValueDetail{
		// 						{
		// 							DisplayName: to.Ptr("Action Groups"),
		// 							ID: to.Ptr("Action Groups"),
		// 							PreviousID: to.Ptr("Action Groups"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.insights/actiongroups"),
		// 								to.Ptr("microsoft.alertsmanagement/alerts"),
		// 							},
		// 							ServiceGUID: to.Ptr("dd60e3bb-f267-42e8-b3c3-0838150598d7"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Activity Log"),
		// 							ID: to.Ptr("Activity Log"),
		// 							PreviousID: to.Ptr("Activity Logs & Alerts"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.insights/alertrules"),
		// 								to.Ptr("microsoft.insights/activitylogalerts"),
		// 								to.Ptr("microsoft.alertsmanagement/alerts"),
		// 							},
		// 							ServiceGUID: to.Ptr("8a023ddb-a2f2-4c1e-8c41-d8de3ec39280"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Advisor"),
		// 							ID: to.Ptr("Azure Advisor"),
		// 							PreviousID: to.Ptr("Advisor"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("69e94f8b-698b-40a7-8345-b2972670c750"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Alerts"),
		// 							ID: to.Ptr("Alerts"),
		// 							PreviousID: to.Ptr("Alerts"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.insights/alertrules"),
		// 								to.Ptr("microsoft.insights/activitylogalerts"),
		// 								to.Ptr("microsoft.insights/metricalerts"),
		// 								to.Ptr("microsoft.insights/scheduledqueryrules"),
		// 								to.Ptr("microsoft.insights/actiongroups"),
		// 								to.Ptr("microsoft.alertsmanagement/alerts"),
		// 								to.Ptr("microsoft.alertsmanagement/actionrules"),
		// 								to.Ptr("microsoft.alertsmanagement/smartdetectoralertrules"),
		// 							},
		// 							ServiceGUID: to.Ptr("3d3ab1c0-ed0a-48a5-897a-f3b67cfed4fc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Metrics"),
		// 							ID: to.Ptr("Metrics"),
		// 							PreviousID: to.Ptr("Alerts & Metrics"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.insights/alertrules"),
		// 								to.Ptr("microsoft.insights/metricalerts"),
		// 								to.Ptr("microsoft.alertsmanagement/alerts"),
		// 							},
		// 							ServiceGUID: to.Ptr("cce32e97-3144-4cc1-838d-89b4b00bd5f5"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("API Management"),
		// 							ID: to.Ptr("API Management"),
		// 							PreviousID: to.Ptr("API Management"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.apimanagement/service"),
		// 							},
		// 							ServiceGUID: to.Ptr("de3a46ad-0797-4b4b-ae6c-9c40d909f3f0"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("App Service"),
		// 							ID: to.Ptr("App Service"),
		// 							PreviousID: to.Ptr("App Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/sites"),
		// 							},
		// 							ServiceGUID: to.Ptr("75a8fc46-5105-4973-9aff-d070081824b4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("App Service (Linux)"),
		// 							ID: to.Ptr("App Service (Linux)"),
		// 							PreviousID: to.Ptr("App Service (Linux)"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/sites"),
		// 							},
		// 							ServiceGUID: to.Ptr("8f261a39-32cb-4806-8822-d630625300bc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Web App for Containers"),
		// 							ID: to.Ptr("Web App for Containers"),
		// 							PreviousID: to.Ptr("App Service (Linux) \\ Web App for Containers"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/sites"),
		// 							},
		// 							ServiceGUID: to.Ptr("e5c1457d-fd28-4867-8e7c-8fdb20dab602"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Web Apps Linux"),
		// 							ID: to.Ptr("Web Apps Linux"),
		// 							PreviousID: to.Ptr("App Service (Linux) \\ Web Apps"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/sites"),
		// 							},
		// 							ServiceGUID: to.Ptr("5a719e16-c72b-4b77-a6dd-90b06d9213cd"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Web Apps"),
		// 							ID: to.Ptr("Web Apps"),
		// 							PreviousID: to.Ptr("App Service \\ Web Apps"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/sites"),
		// 							},
		// 							ServiceGUID: to.Ptr("d8a9cadd-47a1-4800-b130-c9ca5bcbc22d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Application Gateway"),
		// 							ID: to.Ptr("Application Gateway"),
		// 							PreviousID: to.Ptr("Application Gateway"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/applicationgateways"),
		// 							},
		// 							ServiceGUID: to.Ptr("7c0e3f78-2055-4971-a222-15dcf436328a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Application Gateway \\ Application Gateway for Containers"),
		// 							ID: to.Ptr("Application Gateway \\ Application Gateway for Containers"),
		// 							PreviousID: to.Ptr("Application Gateway \\ Application Gateway for Containers"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.servicenetworking/trafficcontrollers"),
		// 								to.Ptr("microsoft.servicenetworking/trafficcontrollers/frontends"),
		// 								to.Ptr("microsoft.servicenetworking/trafficcontrollers/associations"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Application Insights"),
		// 							ID: to.Ptr("Application Insights"),
		// 							PreviousID: to.Ptr("Application Insights"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.insights/components"),
		// 							},
		// 							ServiceGUID: to.Ptr("9b2e8e0b-ad00-4335-b2db-9121454a9d73"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Automation"),
		// 							ID: to.Ptr("Automation"),
		// 							PreviousID: to.Ptr("Automation"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.automation/automationaccounts"),
		// 								to.Ptr("microsoft.automation/automationaccounts/runbooks"),
		// 								to.Ptr("microsoft.automation/automationaccounts/jobs"),
		// 							},
		// 							ServiceGUID: to.Ptr("64d43165-f73f-4cde-bd55-6256d8726e78"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("AutoScale"),
		// 							ID: to.Ptr("AutoScale"),
		// 							PreviousID: to.Ptr("AutoScale"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.insights/autoscalesettings"),
		// 							},
		// 							ServiceGUID: to.Ptr("61e1ace9-5b75-409d-a984-058605bde6a0"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Entra ID (formerly Azure AD)"),
		// 							ID: to.Ptr("Microsoft Entra ID (formerly Azure AD)"),
		// 							PreviousID: to.Ptr("Azure Active Directory"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("df6d0116-73df-4512-af5f-e7a73797b4cf"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Enterprise State Roaming"),
		// 							ID: to.Ptr("Enterprise State Roaming"),
		// 							PreviousID: to.Ptr("Azure Active Directory \\ Enterprise State Roaming"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("77f0faf8-b142-4d8d-befd-c6c0aed5349d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Active Directory B2C"),
		// 							ID: to.Ptr("Azure Active Directory B2C"),
		// 							PreviousID: to.Ptr("Azure Active Directory B2C"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("127de653-c49d-421e-9d9b-2c330184916b"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Entra Domain Services"),
		// 							ID: to.Ptr("Microsoft Entra Domain Services"),
		// 							PreviousID: to.Ptr("Azure Active Directory Domain Services"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.aad/domainservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("a4349a22-d989-43a3-a1fc-7558d8167fc3"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Language"),
		// 							ID: to.Ptr("Azure AI Language"),
		// 							PreviousID: to.Ptr("Azure AI Language"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("a38f2de1-fc52-4a09-967d-1f1318b56bfc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Analysis Services"),
		// 							ID: to.Ptr("Azure Analysis Services"),
		// 							PreviousID: to.Ptr("Azure Analysis Services"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.analysisservices/servers"),
		// 							},
		// 							ServiceGUID: to.Ptr("b949364e-1026-4016-819e-1c6d818e992d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure API for FHIR"),
		// 							ID: to.Ptr("Azure API for FHIR"),
		// 							PreviousID: to.Ptr("Azure API for FHIR"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("Microsoft.HealthcareApis/services"),
		// 							},
		// 							ServiceGUID: to.Ptr("12707bfb-d778-43f8-a368-4eea3b692f52"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure App Configuration"),
		// 							ID: to.Ptr("Azure App Configuration"),
		// 							PreviousID: to.Ptr("Azure App Configuration"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Applied AI Services"),
		// 							ID: to.Ptr("Azure Applied AI Services"),
		// 							PreviousID: to.Ptr("Azure Applied AI Services"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("438b91ac-ac28-48ff-bd61-d66aa3e7961c"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Applied AI Services \\ Azure Video Indexer"),
		// 							ID: to.Ptr("Azure Applied AI Services \\ Azure Video Indexer"),
		// 							PreviousID: to.Ptr("Azure Applied AI Services \\ Azure Video Indexer"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("e9a80e67-7cad-4840-bf1b-ae9373c9c411"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Arc enabled data services"),
		// 							ID: to.Ptr("Azure Arc enabled data services"),
		// 							PreviousID: to.Ptr("Azure Arc enabled data services"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("1dbdbfab-e4c2-433c-ac41-dbf6b3de783f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Arc enabled Kubernetes"),
		// 							ID: to.Ptr("Azure Arc enabled Kubernetes"),
		// 							PreviousID: to.Ptr("Azure Arc enabled Kubernetes"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.kubernetes/connectedclusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("05fd8a7b-a984-482e-9589-47bc2eb5bb86"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Arc enabled servers"),
		// 							ID: to.Ptr("Azure Arc enabled servers"),
		// 							PreviousID: to.Ptr("Azure Arc enabled servers"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.hybridcompute/machines"),
		// 							},
		// 							ServiceGUID: to.Ptr("0e6e381f-28a0-49f7-bb46-81d0ae6e818d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Arc enabled VMware vSphere"),
		// 							ID: to.Ptr("Azure Arc enabled VMware vSphere"),
		// 							PreviousID: to.Ptr("Azure Arc enabled VMware vSphere"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("2d5e5fd0-55c3-4821-827b-ed0ff8cbbf25"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Automanage"),
		// 							ID: to.Ptr("Azure Automanage"),
		// 							PreviousID: to.Ptr("Azure Automanage"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.automanage/configurationprofiles"),
		// 								to.Ptr("microsoft.compute/virtualmachines/providers/configurationprofileassignments"),
		// 								to.Ptr("microsoft.hybridcompute/machines/providers/configurationprofileassignments"),
		// 								to.Ptr("microsoft.Azurestackhci/clusters/providers/configurationprofileassignments"),
		// 							},
		// 							ServiceGUID: to.Ptr("a0e570dd-15f6-4695-a0ae-bb4ab6e50d86"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Bastion"),
		// 							ID: to.Ptr("Azure Bastion"),
		// 							PreviousID: to.Ptr("Azure Bastion"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/bastionhosts"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Blueprints"),
		// 							ID: to.Ptr("Azure Blueprints"),
		// 							PreviousID: to.Ptr("Azure Blueprints"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ccc3afc9-a511-4a91-b34c-4da03923b598"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Bot Service"),
		// 							ID: to.Ptr("Azure AI Bot Service"),
		// 							PreviousID: to.Ptr("Azure Bot Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.botservice/botservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("68c49ae2-1177-42bf-bf4e-6ee6840e030d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Center for SAP solutions"),
		// 							ID: to.Ptr("Azure Center for SAP solutions"),
		// 							PreviousID: to.Ptr("Azure Center for SAP solutions"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Chaos Studio"),
		// 							ID: to.Ptr("Azure Chaos Studio"),
		// 							PreviousID: to.Ptr("Azure Chaos Studio"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("26f13394-cf3a-489c-814b-4934364ddc61"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Communication Services"),
		// 							ID: to.Ptr("Azure Communication Services"),
		// 							PreviousID: to.Ptr("Azure Communication Services"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.communication/communicationservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("af83ba76-77bc-419f-95a6-60e871eb1761"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Communications Gateway"),
		// 							ID: to.Ptr("Azure Communications Gateway"),
		// 							PreviousID: to.Ptr("Azure Communications Gateway"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure confidential ledger"),
		// 							ID: to.Ptr("Azure confidential ledger"),
		// 							PreviousID: to.Ptr("Azure confidential ledger"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("85456071-bd39-4f43-be93-86171f2b8014"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Container Apps"),
		// 							ID: to.Ptr("Azure Container Apps"),
		// 							PreviousID: to.Ptr("Azure Container Apps"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("9d6717b6-cec8-4d5a-8f8b-6c7fd20f725d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Container Registry"),
		// 							ID: to.Ptr("Azure Container Registry"),
		// 							PreviousID: to.Ptr("Azure Container Registry"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.containerregistry/registries"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Container Service"),
		// 							ID: to.Ptr("Azure Container Service"),
		// 							PreviousID: to.Ptr("Azure Container Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.containerservice/managedclusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("c592d5cd-771d-4213-8c96-bcdf5c04236d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Container Storage"),
		// 							ID: to.Ptr("Azure Container Storage"),
		// 							PreviousID: to.Ptr("Azure Container Storage"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("f7ac0359-ba1c-42b2-ae65-69bb93702917"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Cosmos DB"),
		// 							ID: to.Ptr("Azure Cosmos DB"),
		// 							PreviousID: to.Ptr("Azure Cosmos DB"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.documentdb/databaseaccounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("25bab179-0609-4372-9305-2bbda8b21fa1"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Cosmos DB for PostgreSQL"),
		// 							ID: to.Ptr("Azure Cosmos DB for PostgreSQL"),
		// 							PreviousID: to.Ptr("Azure Cosmos DB for PostgreSQL"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dbforpostgresql/servergroupsv2"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Explorer"),
		// 							ID: to.Ptr("Azure Data Explorer"),
		// 							PreviousID: to.Ptr("Azure Data Explorer"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.kusto/clusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("299710cb-be2e-4500-aa9e-1482e3d6c81c"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Lake Storage Gen1"),
		// 							ID: to.Ptr("Azure Data Lake Storage Gen1"),
		// 							PreviousID: to.Ptr("Azure Data Lake Storage Gen1"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datalakestore/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("e643561e-b914-4749-afd4-151aaa2b61ca"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Lake Storage Gen1"),
		// 							ID: to.Ptr("Azure Data Lake Storage Gen1"),
		// 							PreviousID: to.Ptr("Azure Data Lake Storage Gen2"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datalakestore/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("e643561e-b914-4749-afd4-151aaa2b61ca"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Manager for Energy"),
		// 							ID: to.Ptr("Azure Data Manager for Energy"),
		// 							PreviousID: to.Ptr("Azure Data Manager for Energy"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("d5dd08d7-ab8a-4af2-b19d-65b0559c2ffc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Share"),
		// 							ID: to.Ptr("Azure Data Share"),
		// 							PreviousID: to.Ptr("Azure Data Share"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datashare/accounts"),
		// 								to.Ptr("microsoft.datashare/shares"),
		// 								to.Ptr("microsoft.datashare/sharesubscriptions"),
		// 								to.Ptr("microsoft.datashare/datasets"),
		// 								to.Ptr("microsoft.datashare/datasetmappings"),
		// 								to.Ptr("microsoft.datashare/invitations"),
		// 							},
		// 							ServiceGUID: to.Ptr("28d079b0-a236-47bf-9818-016f86139aeb"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for MariaDB"),
		// 							ID: to.Ptr("Azure Database for MariaDB"),
		// 							PreviousID: to.Ptr("Azure Database for MariaDB"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dbformariadb/servers"),
		// 							},
		// 							ServiceGUID: to.Ptr("0bb007d7-9f73-472a-b422-6490f9b1ac23"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for MySQL"),
		// 							ID: to.Ptr("Azure Database for MySQL"),
		// 							PreviousID: to.Ptr("Azure Database for MySQL"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dbformysql/servers"),
		// 							},
		// 							ServiceGUID: to.Ptr("b18978b1-34e7-482b-9dfe-27ab596ac9e2"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for MySQL flexible servers"),
		// 							ID: to.Ptr("Azure Database for MySQL flexible servers"),
		// 							PreviousID: to.Ptr("Azure Database for MySQL flexible servers"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dbformysql/flexibleservers"),
		// 							},
		// 							ServiceGUID: to.Ptr("721446db-7ad4-4ad4-8e3a-a6f7116536ab"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for PostgreSQL"),
		// 							ID: to.Ptr("Azure Database for PostgreSQL"),
		// 							PreviousID: to.Ptr("Azure Database for PostgreSQL"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dbforpostgresql/servers"),
		// 							},
		// 							ServiceGUID: to.Ptr("d983ae36-3b4b-426a-b91b-a7d780cf9c3c"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database for PostgreSQL flexible servers"),
		// 							ID: to.Ptr("Azure Database for PostgreSQL flexible servers"),
		// 							PreviousID: to.Ptr("Azure Database for PostgreSQL flexible servers"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dbforpostgresql/flexibleservers"),
		// 							},
		// 							ServiceGUID: to.Ptr("3095259c-51a6-44dd-a4ac-848e34b3f75a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database Migration Service (classic)"),
		// 							ID: to.Ptr("Azure Database Migration Service (classic)"),
		// 							PreviousID: to.Ptr("Azure Database Migration Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("Microsoft.DataMigration/services"),
		// 							},
		// 							ServiceGUID: to.Ptr("07860f46-b91c-4dd8-818a-8efc6205fae2"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Databricks"),
		// 							ID: to.Ptr("Azure Databricks"),
		// 							PreviousID: to.Ptr("Azure Databricks"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.databricks/workspaces"),
		// 							},
		// 							ServiceGUID: to.Ptr("c02df74d-985e-4fba-b233-14bc4910d302"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure DDoS Protection"),
		// 							ID: to.Ptr("Azure DDoS Protection"),
		// 							PreviousID: to.Ptr("Azure DDoS Protection"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("2560c33e-e520-4d4b-84f7-4abdef6952f5"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Dedicated Host"),
		// 							ID: to.Ptr("Azure Dedicated Host"),
		// 							PreviousID: to.Ptr("Azure Dedicated Host"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.compute/hostgroups/hosts"),
		// 							},
		// 							ServiceGUID: to.Ptr("f6fffc87-d7f6-4795-9c51-9b12ebd0b41b"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure DevOps"),
		// 							ID: to.Ptr("Azure DevOps"),
		// 							PreviousID: to.Ptr("Azure DevOps"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ccb5f82d-81f1-4969-b0e6-c905e48f30b5"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Artifacts"),
		// 							ID: to.Ptr("Azure Artifacts"),
		// 							PreviousID: to.Ptr("Azure DevOps \\ Artifacts"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("096dc4fb-9878-4f28-ae08-6a710d019562"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Boards"),
		// 							ID: to.Ptr("Azure Boards"),
		// 							PreviousID: to.Ptr("Azure DevOps \\ Boards"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("7c0e73e3-3299-45e0-838d-540a6ca98748"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Pipelines"),
		// 							ID: to.Ptr("Azure Pipelines"),
		// 							PreviousID: to.Ptr("Azure DevOps \\ Pipelines"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("30128587-cf5f-455c-baec-a2c07c4e227f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Repos"),
		// 							ID: to.Ptr("Azure Repos"),
		// 							PreviousID: to.Ptr("Azure DevOps \\ Repos"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("6c01a220-ef21-4e25-a2a6-7cac8ef22e26"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Test Plans"),
		// 							ID: to.Ptr("Azure Test Plans"),
		// 							PreviousID: to.Ptr("Azure DevOps \\ Test Plans"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ab1618d1-8ac8-431c-ab62-80b33e2ec004"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure DevTest Labs"),
		// 							ID: to.Ptr("Azure DevTest Labs"),
		// 							PreviousID: to.Ptr("Azure DevTest Labs"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.devtestlab/labs"),
		// 							},
		// 							ServiceGUID: to.Ptr("ba34dfee-1588-4605-b4b7-3517e7119304"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Digital Twins"),
		// 							ID: to.Ptr("Azure Digital Twins"),
		// 							PreviousID: to.Ptr("Azure Digital Twins"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.digitaltwins/digitaltwinsinstances"),
		// 							},
		// 							ServiceGUID: to.Ptr("cf19c71b-9e20-4ba8-8cd6-5d512c94c876"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure DNS"),
		// 							ID: to.Ptr("Azure DNS"),
		// 							PreviousID: to.Ptr("Azure DNS"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/dnszones"),
		// 							},
		// 							ServiceGUID: to.Ptr("b4ecf4c3-278d-4d5e-88d4-0b54a320c483"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure FarmBeats"),
		// 							ID: to.Ptr("Azure FarmBeats"),
		// 							PreviousID: to.Ptr("Azure FarmBeats"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("30feb2f4-9e68-48f1-9187-4c1f546e7a5d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure File Sync"),
		// 							ID: to.Ptr("Azure File Sync"),
		// 							PreviousID: to.Ptr("Azure File Sync"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("892475d1-e3fd-4591-982c-33344ce3e5a3"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Firewall"),
		// 							ID: to.Ptr("Azure Firewall"),
		// 							PreviousID: to.Ptr("Azure Firewall"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/azurefirewalls"),
		// 							},
		// 							ServiceGUID: to.Ptr("2fe1ae25-5bb3-4982-bd9e-fd3331942f37"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Firewall Manager"),
		// 							ID: to.Ptr("Azure Firewall Manager"),
		// 							PreviousID: to.Ptr("Azure Firewall Manager"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/firewallpolicies"),
		// 							},
		// 							ServiceGUID: to.Ptr("c8a20933-90e2-4ac5-923e-d23011c1b7d8"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Fluid Relay"),
		// 							ID: to.Ptr("Azure Fluid Relay"),
		// 							PreviousID: to.Ptr("Azure Fluid Relay"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.fluidrelay/fluidrelayservers"),
		// 							},
		// 							ServiceGUID: to.Ptr("7a313a7d-bbef-49c7-9602-bfca0615173a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Front Door"),
		// 							ID: to.Ptr("Azure Front Door"),
		// 							PreviousID: to.Ptr("Azure Frontdoor"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/frontdoors"),
		// 							},
		// 							ServiceGUID: to.Ptr("f7add3d8-74d2-44b5-bc42-a24c4083a47c"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Health Data Services"),
		// 							ID: to.Ptr("Azure Health Data Services"),
		// 							PreviousID: to.Ptr("Azure Health Data Services"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b2b49bcb-80b3-4381-a906-188ffcaf7448"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure HPC Cache"),
		// 							ID: to.Ptr("Azure HPC Cache"),
		// 							PreviousID: to.Ptr("Azure HPC Cache"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.storagecache/caches"),
		// 							},
		// 							ServiceGUID: to.Ptr("c3db7ab6-025a-46ae-b0c5-a18b9ee364bc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Immersive Reader"),
		// 							ID: to.Ptr("Azure AI Immersive Reader"),
		// 							PreviousID: to.Ptr("Azure Immersive Reader"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("7ae82aa1-ef82-4afe-af95-1e3a32885b56"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Information Protection"),
		// 							ID: to.Ptr("Azure Information Protection"),
		// 							PreviousID: to.Ptr("Azure Information Protection"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("2e602fa9-7d06-4cef-bc86-456b33536168"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure IoT Hub"),
		// 							ID: to.Ptr("Azure IoT Hub"),
		// 							PreviousID: to.Ptr("Azure IoT Hub"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.devices/iothubs"),
		// 							},
		// 							ServiceGUID: to.Ptr("8280d8cf-4a79-4a25-842c-0974cbe6266c"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Key Vault Managed HSM"),
		// 							ID: to.Ptr("Azure Key Vault Managed HSM"),
		// 							PreviousID: to.Ptr("Azure Key Vault Managed HSM"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("1900e4e3-5758-4737-9ded-3ee8e2b1ef78"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Kubernetes Service (AKS)"),
		// 							ID: to.Ptr("Azure Kubernetes Service (AKS)"),
		// 							PreviousID: to.Ptr("Azure Kubernetes Service (AKS)"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.containerservice/managedclusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("208b3c14-cb9f-4e7e-8d44-36b968d475ac"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Kubernetes Service on Azure Stack HCI"),
		// 							ID: to.Ptr("Azure Kubernetes Service on Azure Stack HCI"),
		// 							PreviousID: to.Ptr("Azure Kubernetes Service On Azure Stack HCI"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("3fda8b53-9b46-4e3b-94aa-7314ebed3e64"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Lab Services"),
		// 							ID: to.Ptr("Azure Lab Services"),
		// 							PreviousID: to.Ptr("Azure Lab Services"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("d0fb1e9e-45bf-428f-aa34-750fa175ab72"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Load Testing"),
		// 							ID: to.Ptr("Azure Load Testing"),
		// 							PreviousID: to.Ptr("Azure Load Testing"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("eae9554b-75dd-47c7-aeef-3d7ec7be9f75"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Managed Applications"),
		// 							ID: to.Ptr("Azure Managed Applications"),
		// 							PreviousID: to.Ptr("Azure Managed Applications"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("c2b30290-28a0-4cc7-a461-8ea8a8b6c36e"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Managed Grafana"),
		// 							ID: to.Ptr("Azure Managed Grafana"),
		// 							PreviousID: to.Ptr("Azure Managed Grafana"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("f8b3b91c-5d63-4cc0-992b-000dda7b6411"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Managed Instance for Apache Cassandra"),
		// 							ID: to.Ptr("Azure Managed Instance for Apache Cassandra"),
		// 							PreviousID: to.Ptr("Azure Managed Instance for Apache Cassandra"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("fc5e00af-1cd7-4f3b-9d3b-3981bbfa443f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Maps"),
		// 							ID: to.Ptr("Azure Maps"),
		// 							PreviousID: to.Ptr("Azure Maps"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.maps/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("72d3728c-1bf1-4a72-9248-2e45be130eb2"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Metrics Advisor"),
		// 							ID: to.Ptr("Azure AI Metrics Advisor"),
		// 							PreviousID: to.Ptr("Azure Metrics Advisor"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b6c76119-2ed9-4c95-b252-86b64245ff19"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Migrate"),
		// 							ID: to.Ptr("Azure Migrate"),
		// 							PreviousID: to.Ptr("Azure Migrate"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.migrate/migrateprojects"),
		// 							},
		// 							ServiceGUID: to.Ptr("ef1c8f4e-5684-4538-b825-09a33a50fc82"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Monitor"),
		// 							ID: to.Ptr("Azure Monitor"),
		// 							PreviousID: to.Ptr("Azure Monitor"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.alertsmanagement/alerts"),
		// 								to.Ptr("microsoft.insights/scheduledqueryrules"),
		// 							},
		// 							ServiceGUID: to.Ptr("ec7415b4-ca1a-42e3-8a6e-f2b00cc6a095"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Monitor for SAP solutions"),
		// 							ID: to.Ptr("Azure Monitor for SAP solutions"),
		// 							PreviousID: to.Ptr("Azure Monitor for SAP solutions"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.workloads/monitors"),
		// 							},
		// 							ServiceGUID: to.Ptr("6ef1bc31-c725-4575-84eb-14cd5200e82d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Netapp Files"),
		// 							ID: to.Ptr("Azure Netapp Files"),
		// 							PreviousID: to.Ptr("Azure Netapp Files"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.netapp/netappaccounts"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Network Function Manager"),
		// 							ID: to.Ptr("Azure Network Function Manager"),
		// 							PreviousID: to.Ptr("Azure Network Function Manager - Device"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.hybridnetwork/devices"),
		// 							},
		// 							ServiceGUID: to.Ptr("7b0379ff-0029-44ee-8e46-67c74f083b1e"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Network Function Manager - Network Function"),
		// 							ID: to.Ptr("Azure Network Function Manager - Network Function"),
		// 							PreviousID: to.Ptr("Azure Network Function Manager - Network Function"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.hybridnetwork/networkfunctions"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Open Datasets"),
		// 							ID: to.Ptr("Azure Open Datasets"),
		// 							PreviousID: to.Ptr("Azure Open Datasets"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("e44f9ed2-1032-4748-8fb0-5e51fa563c0f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure OpenAI Service"),
		// 							ID: to.Ptr("Azure OpenAI Service"),
		// 							PreviousID: to.Ptr("Azure OpenAI Service"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("a8020f64-da23-440a-9f38-3e379992e725"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Operator Insights"),
		// 							ID: to.Ptr("Azure Operator Insights"),
		// 							PreviousID: to.Ptr("Azure Operator Insights"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.networkanalytics/dataproducts"),
		// 							},
		// 							ServiceGUID: to.Ptr("8639bbcd-fcd9-464c-b530-a7e847a30ee1"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Orbital Ground Station"),
		// 							ID: to.Ptr("Azure Orbital Ground Station"),
		// 							PreviousID: to.Ptr("Azure Orbital"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ff271bda-eb0f-4dba-b529-04f084a0f762"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Peering Service"),
		// 							ID: to.Ptr("Azure Peering Service"),
		// 							PreviousID: to.Ptr("Azure Peering Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.peering/peeringservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("ffc58582-129e-4d96-9a64-824b849e24dc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Policy"),
		// 							ID: to.Ptr("Azure Policy"),
		// 							PreviousID: to.Ptr("Azure Policy"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("1cd0170a-9720-45f9-b6af-b36a19b9b59f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Private 5G Core"),
		// 							ID: to.Ptr("Azure Private 5G Core"),
		// 							PreviousID: to.Ptr("Azure Private 5G Core"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("27156dff-433f-4379-813d-2be1fa63e28d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Private Link"),
		// 							ID: to.Ptr("Azure Private Link"),
		// 							PreviousID: to.Ptr("Azure Private Link"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/privateendpoints"),
		// 								to.Ptr("microsoft.network/privatelinkservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("9feb1b0f-0438-46bf-9232-9ed60c391610"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure public MEC"),
		// 							ID: to.Ptr("Azure public MEC"),
		// 							PreviousID: to.Ptr("Azure public MEC"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Purview"),
		// 							ID: to.Ptr("Microsoft Purview"),
		// 							PreviousID: to.Ptr("Azure Purview"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.purview/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("baa429d8-9b77-492a-aef5-add495c2ce17"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Quantum"),
		// 							ID: to.Ptr("Azure Quantum"),
		// 							PreviousID: to.Ptr("Azure Quantum"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("bb61c68a-6604-43d9-b417-7787a1c9daf1"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Red Hat OpenShift"),
		// 							ID: to.Ptr("Azure Red Hat OpenShift"),
		// 							PreviousID: to.Ptr("Azure Red Hat OpenShift"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("9913cdbc-8267-4bca-92db-c2f5f54431ca"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Reservations"),
		// 							ID: to.Ptr("Azure Reservations"),
		// 							PreviousID: to.Ptr("Azure Reservations"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Resource Manager"),
		// 							ID: to.Ptr("Azure Resource Manager"),
		// 							PreviousID: to.Ptr("Azure Resource Manager"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("3cd8655c-fc51-4482-9495-19c5d159994a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Resource Mover"),
		// 							ID: to.Ptr("Azure Resource Mover"),
		// 							PreviousID: to.Ptr("Azure Resource Mover"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.migrate/movecollections"),
		// 							},
		// 							ServiceGUID: to.Ptr("7c81c75f-df18-4349-8ae0-aed43fa342d4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Route Server"),
		// 							ID: to.Ptr("Azure Route Server"),
		// 							PreviousID: to.Ptr("Azure Route Server"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ae5fdbd7-7f71-4ba3-9ced-794fe9ec45db"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Search"),
		// 							ID: to.Ptr("Azure AI Search"),
		// 							PreviousID: to.Ptr("Azure Search"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.search/searchservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("1e653978-7b5e-4322-ae3d-8d6bc8ee7cf6"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Sentinel"),
		// 							ID: to.Ptr("Microsoft Sentinel"),
		// 							PreviousID: to.Ptr("Azure Sentinel"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("25e3df42-f3b2-403b-aae3-04f8560dd9bc"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure SignalR Service"),
		// 							ID: to.Ptr("Azure SignalR Service"),
		// 							PreviousID: to.Ptr("Azure SignalR Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.signalrservice/signalr"),
		// 							},
		// 							ServiceGUID: to.Ptr("b5f4048f-bbe7-430c-bae6-d6b9775a83b6"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure SignalR Service Replica"),
		// 							ID: to.Ptr("Azure SignalR Service Replica"),
		// 							PreviousID: to.Ptr("Azure SignalR Service Replica"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.signalrservice/signalr/replicas"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Spatial Anchors"),
		// 							ID: to.Ptr("Spatial Anchors"),
		// 							PreviousID: to.Ptr("Azure Spatial Anchors"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.mixedreality/spatialanchorsaccounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("50687f68-fdac-4740-a754-296fe0ba9dc4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Sphere"),
		// 							ID: to.Ptr("Azure Sphere"),
		// 							PreviousID: to.Ptr("Azure Sphere"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("73a73648-4926-47c2-b14d-045291cfe49d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Spring Apps"),
		// 							ID: to.Ptr("Azure Spring Apps"),
		// 							PreviousID: to.Ptr("Azure Spring Cloud"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.appplatform/spring"),
		// 							},
		// 							ServiceGUID: to.Ptr("d2677798-5040-40db-aed3-f4cf820ce42f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Database Migration Service"),
		// 							ID: to.Ptr("Azure Database Migration Service"),
		// 							PreviousID: to.Ptr("Azure SQL Migration extension for Azure Data Studio powered by Azure Database Migration Service"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datamigration/sqlmigrationservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("c10786a8-84e7-43fe-a93a-791430d6dc8e"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Stack"),
		// 							ID: to.Ptr("Azure Stack"),
		// 							PreviousID: to.Ptr("Azure Stack"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b6614b09-7af2-48a6-88c9-19fcd9452e15"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Stack Edge"),
		// 							ID: to.Ptr("Azure Stack Edge"),
		// 							PreviousID: to.Ptr("Azure Stack Edge"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("84c3e285-d0db-4316-99e7-321af802042b"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Stack HCI"),
		// 							ID: to.Ptr("Azure Stack HCI"),
		// 							PreviousID: to.Ptr("Azure Stack HCI"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.azurestackhci/clusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("f5e35ad3-bc42-4faa-b0aa-4f5ac2666098"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Static Web Apps"),
		// 							ID: to.Ptr("Static Web Apps"),
		// 							PreviousID: to.Ptr("Azure Static Web Apps"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/staticsites"),
		// 							},
		// 							ServiceGUID: to.Ptr("875370d2-8a09-4458-be5e-d5757120c4d8"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Synapse Analytics"),
		// 							ID: to.Ptr("Azure Synapse Analytics"),
		// 							PreviousID: to.Ptr("Azure Synapse Analytics"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.sql/servers"),
		// 								to.Ptr("microsoft.synapse/workspaces"),
		// 							},
		// 							ServiceGUID: to.Ptr("9a958b9e-e815-4cb1-93c4-1bb3c0658f36"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Video Analyzer"),
		// 							ID: to.Ptr("Azure Video Analyzer"),
		// 							PreviousID: to.Ptr("Azure Video Analyzer"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b3863495-59b3-40a5-9379-6ccca152c394"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Virtual Network Manager"),
		// 							ID: to.Ptr("Azure Virtual Network Manager"),
		// 							PreviousID: to.Ptr("Azure Virtual Network Manager"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("7a347ef7-7fb7-42e9-9667-de43b0062256"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure VMware Solution"),
		// 							ID: to.Ptr("Azure VMware Solution"),
		// 							PreviousID: to.Ptr("Azure VMware Solution"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.avs/privateclouds"),
		// 								to.Ptr("microsoft.avs/privateclouds/clusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("810b282f-1898-4941-aa4f-4f64dcff74df"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure VMware Solution by CloudSimple"),
		// 							ID: to.Ptr("Azure VMware Solution by CloudSimple"),
		// 							PreviousID: to.Ptr("Azure VMware Solution by CloudSimple"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("e209d7e2-ff97-413d-b760-77defebc6461"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Web PubSub"),
		// 							ID: to.Ptr("Azure Web PubSub"),
		// 							PreviousID: to.Ptr("Azure Web PubSub"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ac43550d-709c-4d9e-88ae-8064a13aad36"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Backup"),
		// 							ID: to.Ptr("Azure Backup"),
		// 							PreviousID: to.Ptr("Backup"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.dataprotection/backupvaults"),
		// 							},
		// 							ServiceGUID: to.Ptr("74e8aada-cf70-45fb-a11b-249a04915994"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("BareMetal Infrastructure"),
		// 							ID: to.Ptr("BareMetal Infrastructure"),
		// 							PreviousID: to.Ptr("BareMetal Infrastructure"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.baremetalinfrastructure/baremetalinstances"),
		// 							},
		// 							ServiceGUID: to.Ptr("742c810c-db55-40f1-850f-ea7c65ad99b7"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Batch"),
		// 							ID: to.Ptr("Batch"),
		// 							PreviousID: to.Ptr("Batch"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.batch/batchaccounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("1901b854-ccfb-400d-980f-7216df960db5"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Content Delivery Network"),
		// 							ID: to.Ptr("Content Delivery Network"),
		// 							PreviousID: to.Ptr("CDN"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cdn/profiles"),
		// 							},
		// 							ServiceGUID: to.Ptr("ba3e4997-d2fd-48f4-97d7-384384e7d334"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Change Analysis"),
		// 							ID: to.Ptr("Change Analysis"),
		// 							PreviousID: to.Ptr("Change Analysis"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("8df06e0e-5476-473f-af37-0a92f4b3d093"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cloud Services"),
		// 							ID: to.Ptr("Cloud Services"),
		// 							PreviousID: to.Ptr("Cloud Services"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.classiccompute/domainnames"),
		// 								to.Ptr("microsoft.compute/domainnames"),
		// 							},
		// 							ServiceGUID: to.Ptr("6e4a4c31-94d7-4894-9118-7afc0e8306ea"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cloud Shell"),
		// 							ID: to.Ptr("Cloud Shell"),
		// 							PreviousID: to.Ptr("Cloud Shell"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("0fe70901-b01d-4117-8c4a-54565258d55b"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Anomaly Detector"),
		// 							ID: to.Ptr("Azure AI Anomaly Detector"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Anomaly Detector"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b69753ca-e87c-4f4f-953a-126687d2986c"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ Azure Form Recognizer"),
		// 							ID: to.Ptr("Cognitive Services \\ Azure Form Recognizer"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Azure Form Recognizer"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("3fc4e1b4-a4d4-471d-8979-c7bcda41743d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ Azure Metrics Advisor"),
		// 							ID: to.Ptr("Cognitive Services \\ Azure Metrics Advisor"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Azure Metrics Advisor"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing Autosuggest"),
		// 							ID: to.Ptr("Bing Autosuggest"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Autosuggest API"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cognitiveservices/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("17b02c5c-5c50-4653-9c57-8695238d6850"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing Search"),
		// 							ID: to.Ptr("Bing Search"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Search API"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cognitiveservices/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("c6f5a4ef-79c9-4d4d-bbc5-c1145fdd6841"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing Speech"),
		// 							ID: to.Ptr("Bing Speech"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Speech API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ed968ab4-75df-45f3-91ee-e1b66f91c1f1"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing Spell Check"),
		// 							ID: to.Ptr("Bing Spell Check"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Spell Check API"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cognitiveservices/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("f1d603c7-3f4d-4d49-9cd5-cfd64f0c5518"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ Bing Video Search API"),
		// 							ID: to.Ptr("Cognitive Services \\ Bing Video Search API"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Video Search API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing Visual Search"),
		// 							ID: to.Ptr("Bing Visual Search"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Visual Search API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ca7bc791-e359-495c-9875-9e7bc0a83fda"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing Web Search"),
		// 							ID: to.Ptr("Bing Web Search"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Bing Web Search API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("1e3185f4-98e0-4f61-9cd0-57e329bcb4d4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Vision"),
		// 							ID: to.Ptr("Azure AI Vision"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Computer Vision API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("e36212f0-3c59-4dd8-ad0a-95c5acfab82b"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Content Moderator"),
		// 							ID: to.Ptr("Content Moderator"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Content Moderator API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("d31a979e-62d9-48c6-a976-4400a9531a39"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Custom Vision"),
		// 							ID: to.Ptr("Azure AI Custom Vision"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Custom Vision API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("89dc0b96-dad3-4140-8b5f-b1d54eae2224"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Face API"),
		// 							ID: to.Ptr("Face API"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Face API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("a117a047-a4bf-43a6-899b-2ddce52ffe92"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ Form Recognizer API"),
		// 							ID: to.Ptr("Cognitive Services \\ Form Recognizer API"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Form Recognizer API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ Image Search API"),
		// 							ID: to.Ptr("Cognitive Services \\ Image Search API"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Image Search API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Language Understanding (LUIS)"),
		// 							ID: to.Ptr("Language Understanding (LUIS)"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Language Understanding (LUIS)"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b5150ebe-50c1-42b5-884e-11435e44dbbb"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Bing News Search"),
		// 							ID: to.Ptr("Bing News Search"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ News Search API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("163d3dde-82f6-48a8-b7b1-5a4f2ca054da"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Personalizer"),
		// 							ID: to.Ptr("Azure AI Personalizer"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Personalizer API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("26c8902a-4cee-460d-b555-658b30b32342"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ QnA Maker API"),
		// 							ID: to.Ptr("Cognitive Services \\ QnA Maker API"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ QnA Maker API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Speaker recognition"),
		// 							ID: to.Ptr("Speaker recognition"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Speaker Recognition API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("c67d8753-4d72-48f6-8bda-c725843a7730"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Cognitive Services \\ Speech Services API"),
		// 							ID: to.Ptr("Cognitive Services \\ Speech Services API"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Speech Services API"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Translator Speech"),
		// 							ID: to.Ptr("Translator Speech"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Translator Speech API"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cognitiveservices/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("170933fe-0e09-4dbb-be06-c998646f3e72"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure AI Translator"),
		// 							ID: to.Ptr("Azure AI Translator"),
		// 							PreviousID: to.Ptr("Cognitive Services \\ Translator Text API"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cognitiveservices/accounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("58e0377c-fe86-48f5-bf53-34be5da39a2e"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Container Instances"),
		// 							ID: to.Ptr("Azure Container Instances"),
		// 							PreviousID: to.Ptr("Container Instances"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.containerinstance/containergroups"),
		// 							},
		// 							ServiceGUID: to.Ptr("f09a540f-702f-4658-9add-4e0745e874e9"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Container Registry"),
		// 							ID: to.Ptr("Azure Container Registry"),
		// 							PreviousID: to.Ptr("Container Registry"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.containerregistry/registries"),
		// 							},
		// 							ServiceGUID: to.Ptr("fd525ff1-7cf4-4722-800c-27b08e6ee511"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Cost Management"),
		// 							ID: to.Ptr("Microsoft Cost Management"),
		// 							PreviousID: to.Ptr("Cost Management"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("80853877-1df8-40c2-9c79-44c0d1c95e01"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Data Catalog"),
		// 							ID: to.Ptr("Data Catalog"),
		// 							PreviousID: to.Ptr("Data Catalog"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datacatalog/catalogs"),
		// 							},
		// 							ServiceGUID: to.Ptr("86b2e4bc-4a10-4e56-b496-5fc92877fa40"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Data Factory"),
		// 							ID: to.Ptr("Azure Data Factory"),
		// 							PreviousID: to.Ptr("Data Factory"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datafactory/datafactories"),
		// 							},
		// 							ServiceGUID: to.Ptr("5127dd18-b558-44f1-93c8-d03946a507ba"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Data Factory V1"),
		// 							ID: to.Ptr("Data Factory V1"),
		// 							PreviousID: to.Ptr("Data Factory V1"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datafactory/datafactories"),
		// 							},
		// 							ServiceGUID: to.Ptr("bd991e7b-501b-4e41-92e4-3b1b457d47ed"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Data Lake Analytics"),
		// 							ID: to.Ptr("Data Lake Analytics"),
		// 							PreviousID: to.Ptr("Data Lake Analytics"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.datalakeanalytics/accounts"),
		// 								to.Ptr("microsoft.datalakeanalytics/accounts/storageaccounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("a6a59de8-d04a-470d-9ada-06e38b07973a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Device Update for IoT Hub"),
		// 							ID: to.Ptr("Device Update for IoT Hub"),
		// 							PreviousID: to.Ptr("Device Update for IoT Hub"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("4e6cfa0e-b14f-4817-bb8b-0af71ed1bd20"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Diagnostic Logs"),
		// 							ID: to.Ptr("Diagnostic Logs"),
		// 							PreviousID: to.Ptr("Diagnostic Logs"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("5ceb2c27-cfb8-4f49-9f82-9de5d8501ff8"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Event Grid"),
		// 							ID: to.Ptr("Event Grid"),
		// 							PreviousID: to.Ptr("Event Grid"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.eventgrid/topics"),
		// 							},
		// 							ServiceGUID: to.Ptr("dfcc7c1f-a5f9-473d-9e3d-bc210381eaaa"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Event Hubs"),
		// 							ID: to.Ptr("Event Hubs"),
		// 							PreviousID: to.Ptr("Event Hubs"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.eventhub/namespaces"),
		// 							},
		// 							ServiceGUID: to.Ptr("26eb5c3a-c0ac-4004-89c8-19f2ba943495"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("ExpressRoute Circuits"),
		// 							ID: to.Ptr("ExpressRoute Circuits"),
		// 							PreviousID: to.Ptr("ExpressRoute \\ ExpressRoute Circuits"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/expressroutecircuits"),
		// 							},
		// 							ServiceGUID: to.Ptr("58137616-48c5-4e58-83f5-bf899db10c51"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("ExpressRoute Gateways"),
		// 							ID: to.Ptr("ExpressRoute Gateways"),
		// 							PreviousID: to.Ptr("ExpressRoute \\ ExpressRoute Gateways"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("70ae432f-672e-4a65-b097-56ae417856fe"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Functions"),
		// 							ID: to.Ptr("Azure Functions"),
		// 							PreviousID: to.Ptr("Functions"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.web/sites"),
		// 							},
		// 							ServiceGUID: to.Ptr("5fc58b3a-04b6-47b9-a5c0-54557c2f7098"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("HDInsight"),
		// 							ID: to.Ptr("HDInsight"),
		// 							PreviousID: to.Ptr("HDInsight"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.hdinsight/clusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("bc556141-64ff-4cb6-be04-09587e951f39"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Health Bot"),
		// 							ID: to.Ptr("Health Bot"),
		// 							PreviousID: to.Ptr("Health Bot"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("e7f94548-ea49-4383-ade3-5ecb831d0a9a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("HockeyApp"),
		// 							ID: to.Ptr("HockeyApp"),
		// 							PreviousID: to.Ptr("HockeyApp"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("15804046-b162-4d03-b498-5ce1cafd3c21"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Internet Analyzer"),
		// 							ID: to.Ptr("Azure Internet Analyzer"),
		// 							PreviousID: to.Ptr("Internet Analyzer"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/networkexperiment"),
		// 							},
		// 							ServiceGUID: to.Ptr("a2fb8e5c-500d-4346-85be-e74df53a5cf4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure IoT Central"),
		// 							ID: to.Ptr("Azure IoT Central"),
		// 							PreviousID: to.Ptr("IoT Central"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.iotcentral/iotapps"),
		// 							},
		// 							ServiceGUID: to.Ptr("dfcba649-596a-453f-b4fa-6a0f15b23feb"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("IoT Hub Device Provisioning Service"),
		// 							ID: to.Ptr("IoT Hub Device Provisioning Service"),
		// 							PreviousID: to.Ptr("IoT Hub \\ IoT Hub Device Provisioning Service"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("655241b1-1ea4-4e58-95ad-2b2ad5651c79"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Key Vault"),
		// 							ID: to.Ptr("Key Vault"),
		// 							PreviousID: to.Ptr("Key Vault"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.keyvault/vaults"),
		// 							},
		// 							ServiceGUID: to.Ptr("3cc13ff2-fb8d-4867-bd9b-e79c31b4e9fe"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Load Balancer"),
		// 							ID: to.Ptr("Load Balancer"),
		// 							PreviousID: to.Ptr("Load Balancer"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/loadbalancers"),
		// 							},
		// 							ServiceGUID: to.Ptr("244b7968-45ac-4390-b067-6b6ef0d9436e"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Log Analytics"),
		// 							ID: to.Ptr("Log Analytics"),
		// 							PreviousID: to.Ptr("Log Analytics"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.operationalinsights/workspaces"),
		// 							},
		// 							ServiceGUID: to.Ptr("8573e08a-c216-46d6-9396-bb124ec1c385"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Logic Apps"),
		// 							ID: to.Ptr("Logic Apps"),
		// 							PreviousID: to.Ptr("Logic Apps"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.logic/workflows"),
		// 							},
		// 							ServiceGUID: to.Ptr("7dbbbe2b-f134-4585-8e6d-2482ca5b3204"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Machine Learning Services"),
		// 							ID: to.Ptr("Machine Learning Services"),
		// 							PreviousID: to.Ptr("Machine Learning Services"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.machinelearning/workspaces"),
		// 								to.Ptr("microsoft.machinelearning/commitmentplans"),
		// 								to.Ptr("microsoft.machinelearning/webservices"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Machine Learning Experimentation Service"),
		// 							ID: to.Ptr("Machine Learning Experimentation Service"),
		// 							PreviousID: to.Ptr("Machine Learning Services \\ Machine Learning Experimentation Service"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("68c29be7-353a-406b-9f74-ae1555adbfdf"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Machine Learning Services \\ Machine Learning Model Management"),
		// 							ID: to.Ptr("Machine Learning Services \\ Machine Learning Model Management"),
		// 							PreviousID: to.Ptr("Machine Learning Services \\ Machine Learning Model Management"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Machine Learning Studio (classic)"),
		// 							ID: to.Ptr("Machine Learning Studio (classic)"),
		// 							PreviousID: to.Ptr("Machine Learning Studio"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("4a8cf6cc-ec79-4b43-a517-99f62cfb8000"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Marketplace"),
		// 							ID: to.Ptr("Marketplace"),
		// 							PreviousID: to.Ptr("Marketplace"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("45bef406-5b9b-4959-91c0-b37dc6f939f5"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Encoding"),
		// 							ID: to.Ptr("Encoding"),
		// 							PreviousID: to.Ptr("Media Services \\ Encoding"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.media/mediaservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("9495899e-f2b2-44ad-96db-053d2f95259d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Live and On-Demand Streaming"),
		// 							ID: to.Ptr("Live and On-Demand Streaming"),
		// 							PreviousID: to.Ptr("Media Services \\ Streaming"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.media/mediaservices"),
		// 							},
		// 							ServiceGUID: to.Ptr("749878af-10cc-403d-88a1-d2c836cde449"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Azure Attestation"),
		// 							ID: to.Ptr("Microsoft Azure Attestation"),
		// 							PreviousID: to.Ptr("Microsoft Azure Attestation"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Azure portal"),
		// 							ID: to.Ptr("Microsoft Azure portal"),
		// 							PreviousID: to.Ptr("Microsoft Azure portal"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("37a0f46a-2110-4ade-bf3e-38ca75571835"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Defender External Attack Surface Management"),
		// 							ID: to.Ptr("Defender External Attack Surface Management"),
		// 							PreviousID: to.Ptr("Microsoft Defender External Attack Surface Management"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("a531b301-ef06-4455-875b-b649636d3068"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Defender for Cloud"),
		// 							ID: to.Ptr("Microsoft Defender for Cloud"),
		// 							PreviousID: to.Ptr("Microsoft Defender for Cloud"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("b8053170-a9bb-4906-9f17-1d36770817a8"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Defender for IoT"),
		// 							ID: to.Ptr("Microsoft Defender for IoT"),
		// 							PreviousID: to.Ptr("Microsoft Defender for IoT"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ecff6e47-bdaf-4a0d-a557-410d6037f8ce"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Entra Permissions Management"),
		// 							ID: to.Ptr("Microsoft Entra Permissions Management"),
		// 							PreviousID: to.Ptr("Microsoft Entra Permissions Management"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("fdd9f473-eb53-460b-86c9-7397c9385271"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Genomics"),
		// 							ID: to.Ptr("Microsoft Genomics"),
		// 							PreviousID: to.Ptr("Microsoft Genomics"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("522d2d20-ab5c-4eaf-9a13-6bcf21a1e068"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Microsoft Graph"),
		// 							ID: to.Ptr("Microsoft Graph"),
		// 							PreviousID: to.Ptr("Microsoft Graph"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("865a6015-2ac2-43cb-9a51-4de609495bb2"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Mobile Engagement"),
		// 							ID: to.Ptr("Mobile Engagement"),
		// 							PreviousID: to.Ptr("Mobile Engagement"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Multi-Factor Authentication"),
		// 							ID: to.Ptr("Multi-Factor Authentication"),
		// 							PreviousID: to.Ptr("Multi-Factor Authentication"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("3275b980-3024-4afc-904a-75abb311c7f8"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Network Infrastructure"),
		// 							ID: to.Ptr("Network Infrastructure"),
		// 							PreviousID: to.Ptr("Network Infrastructure"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("29b3a339-1451-4e30-a90c-ac8f212f456a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Network Watcher"),
		// 							ID: to.Ptr("Network Watcher"),
		// 							PreviousID: to.Ptr("Network Watcher"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("16ad17ce-f860-4eaf-93d9-e14bd66fd39f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Notification Hubs"),
		// 							ID: to.Ptr("Notification Hubs"),
		// 							PreviousID: to.Ptr("Notification Hubs"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.notificationhubs/namespaces"),
		// 							},
		// 							ServiceGUID: to.Ptr("40de6907-b55c-4371-ac45-02218c32553a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Power BI Embedded"),
		// 							ID: to.Ptr("Power BI Embedded"),
		// 							PreviousID: to.Ptr("Power BI Embedded"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.powerbi/workspacecollections"),
		// 								to.Ptr("microsoft.powerbidedicated/capacities"),
		// 							},
		// 							ServiceGUID: to.Ptr("77524b54-6db4-47fc-ba52-c51fb7978215"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Recovery Services vault"),
		// 							ID: to.Ptr("Recovery Services vault"),
		// 							PreviousID: to.Ptr("Recovery Services vault"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.recoveryservices/vaults"),
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Cache for Redis"),
		// 							ID: to.Ptr("Azure Cache for Redis"),
		// 							PreviousID: to.Ptr("Redis Cache"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.cache/redis"),
		// 							},
		// 							ServiceGUID: to.Ptr("24fbd5a2-aa9a-4055-8c05-388790f655d0"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Remote Rendering"),
		// 							ID: to.Ptr("Remote Rendering"),
		// 							PreviousID: to.Ptr("Remote Rendering"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.mixedreality/remoterenderingaccounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("b8828cd7-ad0d-4b22-ac24-9edb2efd7aa4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("SAP HANA on Azure Large Instances"),
		// 							ID: to.Ptr("SAP HANA on Azure Large Instances"),
		// 							PreviousID: to.Ptr("SAP HANA on Azure Large Instances"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.hanaonazure/hanainstances"),
		// 							},
		// 							ServiceGUID: to.Ptr("3367031b-ac0d-43f1-9bb7-2bbe8d10b8bb"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Scheduler"),
		// 							ID: to.Ptr("Scheduler"),
		// 							PreviousID: to.Ptr("Scheduler"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.scheduler/jobcollections"),
		// 							},
		// 							ServiceGUID: to.Ptr("5b140297-fde5-4060-b495-9cb05c4bef40"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Security Center"),
		// 							ID: to.Ptr("Security Center"),
		// 							PreviousID: to.Ptr("Security Center"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Service Bus"),
		// 							ID: to.Ptr("Service Bus"),
		// 							PreviousID: to.Ptr("Service Bus"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.servicebus/namespaces"),
		// 							},
		// 							ServiceGUID: to.Ptr("2f15c16c-f172-4947-961f-7291994ba791"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Service Fabric"),
		// 							ID: to.Ptr("Azure Service Fabric"),
		// 							PreviousID: to.Ptr("Service Fabric"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.servicefabric/clusters"),
		// 							},
		// 							ServiceGUID: to.Ptr("0b1b8d1d-a623-49af-b9cf-653925d81adb"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Site Recovery"),
		// 							ID: to.Ptr("Azure Site Recovery"),
		// 							PreviousID: to.Ptr("Site Recovery"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.recoveryservices/vaults"),
		// 							},
		// 							ServiceGUID: to.Ptr("21a86e6c-d091-4ca4-97ea-23e2c56e62d2"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Speech Services"),
		// 							ID: to.Ptr("Speech Services"),
		// 							PreviousID: to.Ptr("Speech Services"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Synapse Analytics"),
		// 							ID: to.Ptr("Azure Synapse Analytics"),
		// 							PreviousID: to.Ptr("SQL Data Warehouse"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.sql/servers/databases"),
		// 							},
		// 							ServiceGUID: to.Ptr("9a958b9e-e815-4cb1-93c4-1bb3c0658f36"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure SQL Database"),
		// 							ID: to.Ptr("Azure SQL Database"),
		// 							PreviousID: to.Ptr("SQL Database"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.sql/servers"),
		// 								to.Ptr("microsoft.sql/servers/databases"),
		// 								to.Ptr("microsoft.sql/servers/elasticpools"),
		// 							},
		// 							ServiceGUID: to.Ptr("e3ce006a-6d8f-4265-b8b1-bd0dd1e1db70"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("SQL Managed Instance"),
		// 							ID: to.Ptr("SQL Managed Instance"),
		// 							PreviousID: to.Ptr("SQL Managed Instance"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.sql/managedinstances/databases"),
		// 								to.Ptr("microsoft.sql/managedinstances"),
		// 							},
		// 							ServiceGUID: to.Ptr("7e3293d7-9a22-4069-b13c-7c51ce7e8e18"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("SQL Server on Azure Virtual Machines"),
		// 							ID: to.Ptr("SQL Server on Azure Virtual Machines"),
		// 							PreviousID: to.Ptr("SQL Server on Azure Virtual Machines"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.sqlvirtualmachine/sqlvirtualmachines"),
		// 							},
		// 							ServiceGUID: to.Ptr("fd8065f5-ffd0-4756-8788-e6a11bf36257"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("SQL Server Stretch Database"),
		// 							ID: to.Ptr("SQL Server Stretch Database"),
		// 							PreviousID: to.Ptr("SQL Server Stretch Database"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("e19f5aad-fa6e-40bd-ae18-2f922d2b99d7"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Storage Accounts"),
		// 							ID: to.Ptr("Storage Accounts"),
		// 							PreviousID: to.Ptr("Storage"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.classicstorage/storageaccounts"),
		// 								to.Ptr("microsoft.storage/storageaccounts"),
		// 							},
		// 							ServiceGUID: to.Ptr("67402cc3-30f9-4a42-a9ec-e673eb69ec95"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("StorSimple"),
		// 							ID: to.Ptr("StorSimple"),
		// 							PreviousID: to.Ptr("StorSimple"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.storsimple/managers"),
		// 								to.Ptr("microsoft.storsimplebvtd2/managers"),
		// 							},
		// 							ServiceGUID: to.Ptr("77b22825-175f-4ee6-ac11-598e37f05863"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Stream Analytics"),
		// 							ID: to.Ptr("Azure Stream Analytics"),
		// 							PreviousID: to.Ptr("Stream Analytics"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.streamanalytics/streamingjobs"),
		// 							},
		// 							ServiceGUID: to.Ptr("aeb8aa68-cc23-4bbd-8463-3f443b474ce1"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Subscription Management"),
		// 							ID: to.Ptr("Subscription Management"),
		// 							PreviousID: to.Ptr("Subscription Management"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Time Series Insights"),
		// 							ID: to.Ptr("Azure Time Series Insights"),
		// 							PreviousID: to.Ptr("Time Series Insights"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("7b275e4b-652b-41bc-a159-06512d5d0b9b"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Traffic Manager"),
		// 							ID: to.Ptr("Traffic Manager"),
		// 							PreviousID: to.Ptr("Traffic Manager"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/trafficmanagerprofiles"),
		// 							},
		// 							ServiceGUID: to.Ptr("27b3a3d8-2220-4338-8418-6b1187d8d283"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Universal Print"),
		// 							ID: to.Ptr("Universal Print"),
		// 							PreviousID: to.Ptr("Universal Print"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("811769df-0f8b-4ba6-ae9e-607213161456"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Update management center"),
		// 							ID: to.Ptr("Update management center"),
		// 							PreviousID: to.Ptr("Update management center"),
		// 							ResourceTypes: []*string{
		// 							},
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual Machine Scale Sets"),
		// 							ID: to.Ptr("Virtual Machine Scale Sets"),
		// 							PreviousID: to.Ptr("Virtual Machine Scale Sets"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.compute/virtualmachinescalesets"),
		// 							},
		// 							ServiceGUID: to.Ptr("49a16bdd-cb5f-47da-9c37-341332cea4a4"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual Machines"),
		// 							ID: to.Ptr("Virtual Machines"),
		// 							PreviousID: to.Ptr("Virtual Machines"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.classiccompute/virtualmachines"),
		// 								to.Ptr("microsoft.compute/virtualmachines"),
		// 							},
		// 							ServiceGUID: to.Ptr("83c0c143-1bef-482f-9d84-749914effe8f"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual Network"),
		// 							ID: to.Ptr("Virtual Network"),
		// 							PreviousID: to.Ptr("Virtual Network"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/virtualnetworks"),
		// 								to.Ptr("microsoft.classicnetwork/virtualnetworks"),
		// 							},
		// 							ServiceGUID: to.Ptr("e47bb3da-1f1c-43a0-ac52-01c2db7da60d"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure NAT Gateway"),
		// 							ID: to.Ptr("Azure NAT Gateway"),
		// 							PreviousID: to.Ptr("Virtual Network NAT"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("ee138b5a-7279-4ce8-bf87-09714a86e842"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("VPN Gateway"),
		// 							ID: to.Ptr("VPN Gateway"),
		// 							PreviousID: to.Ptr("VPN Gateway"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.network/virtualnetworkgateways"),
		// 								to.Ptr("microsoft.network/connections"),
		// 							},
		// 							ServiceGUID: to.Ptr("6b842e17-9c1a-4127-8f13-821a8be8b23a"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Virtual WAN"),
		// 							ID: to.Ptr("Virtual WAN"),
		// 							PreviousID: to.Ptr("VPN Gateway \\ Virtual WAN"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("5eef27d8-d3f7-43b2-9e30-5bb406e54528"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Windows 10 IoT Core Services"),
		// 							ID: to.Ptr("Windows 10 IoT Core Services"),
		// 							PreviousID: to.Ptr("Windows 10 IoT Core Services"),
		// 							ResourceTypes: []*string{
		// 							},
		// 							ServiceGUID: to.Ptr("747bf4f1-b680-4ec9-84ac-2947042beb9e"),
		// 						},
		// 						{
		// 							DisplayName: to.Ptr("Azure Virtual Desktop"),
		// 							ID: to.Ptr("Azure Virtual Desktop"),
		// 							PreviousID: to.Ptr("Windows Virtual Desktop"),
		// 							ResourceTypes: []*string{
		// 								to.Ptr("microsoft.desktopvirtualization/hostpools"),
		// 							},
		// 							ServiceGUID: to.Ptr("3afcd6bc-cd20-4cbc-ac01-a16469151425"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type MetadataClientGetEntityOptions added in v1.2.0

type MetadataClientGetEntityOptions struct {
}

MetadataClientGetEntityOptions contains the optional parameters for the MetadataClient.GetEntity method.

type MetadataClientGetEntityResponse added in v1.2.0

type MetadataClientGetEntityResponse struct {
	// The metadata entity contract.
	MetadataEntity
}

MetadataClientGetEntityResponse contains the response from method MetadataClient.GetEntity.

type MetadataClientListOptions added in v1.2.0

type MetadataClientListOptions struct {
}

MetadataClientListOptions contains the optional parameters for the MetadataClient.NewListPager method.

type MetadataClientListResponse added in v1.2.0

type MetadataClientListResponse struct {
	// The list of metadata entities
	MetadataEntityListResult
}

MetadataClientListResponse contains the response from method MetadataClient.NewListPager.

type MetadataEntity added in v1.2.0

type MetadataEntity struct {
	// The metadata entity properties.
	Properties *MetadataEntityProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

MetadataEntity - The metadata entity contract.

func (MetadataEntity) MarshalJSON added in v1.2.0

func (m MetadataEntity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetadataEntity.

func (*MetadataEntity) UnmarshalJSON added in v1.2.0

func (m *MetadataEntity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetadataEntity.

type MetadataEntityListResult added in v1.2.0

type MetadataEntityListResult struct {
	// The link used to get the next page of metadata.
	NextLink *string

	// The list of metadata entities.
	Value []*MetadataEntity
}

MetadataEntityListResult - The list of metadata entities

func (MetadataEntityListResult) MarshalJSON added in v1.2.0

func (m MetadataEntityListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetadataEntityListResult.

func (*MetadataEntityListResult) UnmarshalJSON added in v1.2.0

func (m *MetadataEntityListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetadataEntityListResult.

type MetadataEntityProperties added in v1.2.0

type MetadataEntityProperties struct {
	// The list of scenarios applicable to this metadata entity.
	ApplicableScenarios []*Scenario

	// The list of keys on which this entity depends on.
	DependsOn []*string

	// The display name.
	DisplayName *string

	// The list of supported values.
	SupportedValues []*MetadataSupportedValueDetail
}

MetadataEntityProperties - The metadata entity properties

func (MetadataEntityProperties) MarshalJSON added in v1.2.0

func (m MetadataEntityProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetadataEntityProperties.

func (*MetadataEntityProperties) UnmarshalJSON added in v1.2.0

func (m *MetadataEntityProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetadataEntityProperties.

type MetadataSupportedValueDetail added in v1.2.0

type MetadataSupportedValueDetail struct {
	// The display name.
	DisplayName *string

	// The id of the metadata value
	ID *string

	// The previous value of the id field in case the data has changed.
	PreviousID *string

	// Priority of this metadata supported value. Lower number is given higher preference.
	Priority *int32

	// The list of associated resource types.
	ResourceTypes []*string

	// The permanent guid for the service. Used when the id is a service name.
	ServiceGUID *string
}

MetadataSupportedValueDetail - The metadata supported value detail.

func (MetadataSupportedValueDetail) MarshalJSON added in v1.2.0

func (m MetadataSupportedValueDetail) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetadataSupportedValueDetail.

func (*MetadataSupportedValueDetail) UnmarshalJSON added in v1.2.0

func (m *MetadataSupportedValueDetail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetadataSupportedValueDetail.

type Operation

type Operation struct {
	// Properties of the operation.
	Display *OperationDisplay

	// Name of the operation.
	Name *string
}

Operation available in the Microsoft.ResourceHealth resource provider.

func (Operation) MarshalJSON added in v1.1.0

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON added in v1.1.0

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// Description of the operation.
	Description *string

	// Operation name.
	Operation *string

	// Provider name.
	Provider *string

	// Resource name.
	Resource *string
}

OperationDisplay - Properties of the operation.

func (OperationDisplay) MarshalJSON added in v1.1.0

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON added in v1.1.0

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// REQUIRED; List of operations available in the Microsoft.ResourceHealth resource provider.
	Value []*Operation
}

OperationListResult - Lists the operations response.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON added in v1.1.0

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

Generated from API version 2025-05-01

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*OperationsClient) List

List - Lists available operations for the resourcehealth resource provider If the operation fails it returns an *azcore.ResponseError type.

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example

Generated from example definition: 2025-05-01/Operations_List.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewOperationsClient().List(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armresourcehealth.OperationsClientListResponse{
	// 	OperationListResult: armresourcehealth.OperationListResult{
	// 		Value: []*armresourcehealth.Operation{
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/Operations/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get the operations available for the Microsoft ResourceHealth"),
	// 					Operation: to.Ptr("Get Operations"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Availability Status"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/Notifications/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Receives ARM notifications"),
	// 					Operation: to.Ptr("Receive notification"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Notification"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Gets the availability statuses for all resources in the specified scope"),
	// 					Operation: to.Ptr("Get Availability Statuses"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Availability Status"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/AvailabilityStatuses/current/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Gets the availability status for the specified resource"),
	// 					Operation: to.Ptr("Get Availability Status"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Availability Status"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/events/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get Service Health Events for given subscription"),
	// 					Operation: to.Ptr("Get Service Health Events"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Events"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/events/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Endpoint to fetch details for event"),
	// 					Operation: to.Ptr("Get Event Details"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Events"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/events/fetchEventDetails/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Endpoint to fetch details for event"),
	// 					Operation: to.Ptr("Get Event Details"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Events"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/emergingissues/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get Azure services' emerging issues"),
	// 					Operation: to.Ptr("Get Azure Emerging Issues"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Emerging Issues"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/events/impactedResources/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get Impacted Resources for a given event"),
	// 					Operation: to.Ptr("Get Impacted Resources"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Impacted Resources"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/events/listSecurityAdvisoryImpactedResources/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get Impacted Resources for a given event of type SecurityAdvisory"),
	// 					Operation: to.Ptr("Get Impacted Resources"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Impacted Resources"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/potentialoutages/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/impactedResources/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get Impacted Resources for given subscription"),
	// 					Operation: to.Ptr("Get Impacted Resources"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Impacted Resources"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/register/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Registers the subscription for the Microsoft ResourceHealth"),
	// 					Operation: to.Ptr("Register with the Provider"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Registration"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/unregister/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Unregisters the subscription for the Microsoft ResourceHealth"),
	// 					Operation: to.Ptr("Unregister with the Provider"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Unregistration"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.Resourcehealth/healthevent/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Denotes the change in health state for the specified resource"),
	// 					Operation: to.Ptr("HealthEvent Change"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Availability Status"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.Resourcehealth/healthevent/Activated/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Denotes the change in health state for the specified resource"),
	// 					Operation: to.Ptr("Health Event Activated"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Health Event"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.Resourcehealth/healthevent/Updated/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Denotes the change in health state for the specified resource"),
	// 					Operation: to.Ptr("Health Event Updated"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Health Event"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.Resourcehealth/healthevent/Resolved/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Denotes the change in health state for the specified resource"),
	// 					Operation: to.Ptr("Health Event Resolved"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Health Event"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.Resourcehealth/healthevent/InProgress/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Denotes the change in health state for the specified resource"),
	// 					Operation: to.Ptr("Health Event InProgress"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Health Event"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.Resourcehealth/healthevent/Pending/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Denotes the change in health state for the specified resource"),
	// 					Operation: to.Ptr("Health Event Pending"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Health Event"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/metadata/read"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Gets Metadata"),
	// 					Operation: to.Ptr("Read Metadata"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Metadata"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("Microsoft.ResourceHealth/events/fetchBillingCommunicationDetails/action"),
	// 				Display: &armresourcehealth.OperationDisplay{
	// 					Description: to.Ptr("Get Billing details for a given subscription and tracking id"),
	// 					Operation: to.Ptr("Fetch Billing Details"),
	// 					Provider: to.Ptr("Microsoft ResourceHealth"),
	// 					Resource: to.Ptr("Billing Details"),
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

type OperationsClientListOptions added in v0.3.0

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

type OperationsClientListResponse added in v0.3.0

type OperationsClientListResponse struct {
	// Lists the operations response.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.List.

type ReasonChronicityTypes

type ReasonChronicityTypes string

ReasonChronicityTypes - Chronicity of the availability transition.

const (
	// ReasonChronicityTypesPersistent - Persistent
	ReasonChronicityTypesPersistent ReasonChronicityTypes = "Persistent"
	// ReasonChronicityTypesTransient - Transient
	ReasonChronicityTypesTransient ReasonChronicityTypes = "Transient"
)

func PossibleReasonChronicityTypesValues

func PossibleReasonChronicityTypesValues() []ReasonChronicityTypes

PossibleReasonChronicityTypesValues returns the possible values for the ReasonChronicityTypes const type.

type RecommendedAction

type RecommendedAction struct {
	// Recommended action.
	Action *string

	// Link to the action
	ActionURL *string

	// the comment for the Action
	ActionURLComment *string

	// Substring of action, it describes which text should host the action URL.
	ActionURLText *string
}

RecommendedAction - Lists actions the user can take based on the current availabilityState of the resource.

func (RecommendedAction) MarshalJSON added in v1.1.0

func (r RecommendedAction) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecommendedAction.

func (*RecommendedAction) UnmarshalJSON added in v1.1.0

func (r *RecommendedAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecommendedAction.

type Scenario added in v1.2.0

type Scenario string
const (
	// ScenarioAlerts - Alerts
	ScenarioAlerts Scenario = "Alerts"
)

func PossibleScenarioValues added in v1.2.0

func PossibleScenarioValues() []Scenario

PossibleScenarioValues returns the possible values for the Scenario const type.

type SecurityAdvisoryImpactedResourcesClient added in v1.2.0

type SecurityAdvisoryImpactedResourcesClient struct {
	// contains filtered or unexported fields
}

SecurityAdvisoryImpactedResourcesClient contains the methods for the SecurityAdvisoryImpactedResources group. Don't use this type directly, use NewSecurityAdvisoryImpactedResourcesClient() instead.

Generated from API version 2025-05-01

func NewSecurityAdvisoryImpactedResourcesClient added in v1.2.0

func NewSecurityAdvisoryImpactedResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecurityAdvisoryImpactedResourcesClient, error)

NewSecurityAdvisoryImpactedResourcesClient creates a new instance of SecurityAdvisoryImpactedResourcesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - Contains optional client configuration. Pass nil to accept the default values.

func (*SecurityAdvisoryImpactedResourcesClient) NewListBySubscriptionIDAndEventIDPager added in v1.2.0

NewListBySubscriptionIDAndEventIDPager - Lists impacted resources in the subscription by an event (Security Advisory).

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDOptions contains the optional parameters for the SecurityAdvisoryImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager method.
Example

Generated from example definition: 2025-05-01/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("subscriptionId", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSecurityAdvisoryImpactedResourcesClient().NewListBySubscriptionIDAndEventIDPager("BC_1-FXZ", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDResponse{
		// 	EventImpactedResourceListResult: armresourcehealth.EventImpactedResourceListResult{
		// 		NextLink: to.Ptr("{originalRequestUrl}?$skipToken={OpaquePageNumber}"),
		// 		Value: []*armresourcehealth.EventImpactedResource{
		// 			{
		// 				Name: to.Ptr("jkl-901-hgy-445"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/jkl-901-hgy-445"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					Info: []*armresourcehealth.KeyValueItem{
		// 						{
		// 							Key: to.Ptr("key-A"),
		// 							Value: to.Ptr("sample-1"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-B"),
		// 							Value: to.Ptr("sample-2"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-C"),
		// 							Value: to.Ptr("sample-3"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-D"),
		// 							Value: to.Ptr("sample-4"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("wer-345-tyu-789"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					Info: []*armresourcehealth.KeyValueItem{
		// 						{
		// 							Key: to.Ptr("key-E"),
		// 							Value: to.Ptr("sample-5"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-F"),
		// 							Value: to.Ptr("sample-6"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-G"),
		// 							Value: to.Ptr("sample-7"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-H"),
		// 							Value: to.Ptr("sample-8"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

func (*SecurityAdvisoryImpactedResourcesClient) NewListByTenantIDAndEventIDPager added in v1.2.0

NewListByTenantIDAndEventIDPager - Lists impacted resources in the tenant by an event (Security Advisory).

  • eventTrackingID - Event Id which uniquely identifies ServiceHealth event.
  • options - SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDOptions contains the optional parameters for the SecurityAdvisoryImpactedResourcesClient.NewListByTenantIDAndEventIDPager method.
Example

Generated from example definition: 2025-05-01/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json

package main

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth"
	"log"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armresourcehealth.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSecurityAdvisoryImpactedResourcesClient().NewListByTenantIDAndEventIDPager("BC_1-FXZ", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armresourcehealth.SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDResponse{
		// 	EventImpactedResourceListResult: armresourcehealth.EventImpactedResourceListResult{
		// 		NextLink: to.Ptr("{originalRequestUrl}?$skipToken={OpaquePageNumber}"),
		// 		Value: []*armresourcehealth.EventImpactedResource{
		// 			{
		// 				Name: to.Ptr("jkl-901-hgy-445"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/jkl-901-hgy-445"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					Info: []*armresourcehealth.KeyValueItem{
		// 						{
		// 							Key: to.Ptr("key-A"),
		// 							Value: to.Ptr("sample-1"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-B"),
		// 							Value: to.Ptr("sample-2"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-C"),
		// 							Value: to.Ptr("sample-3"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-D"),
		// 							Value: to.Ptr("sample-4"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("wer-345-tyu-789"),
		// 				Type: to.Ptr("Microsoft.ResourceHealth/events/impactedResources"),
		// 				ID: to.Ptr("/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789"),
		// 				Properties: &armresourcehealth.EventImpactedResourceProperties{
		// 					Info: []*armresourcehealth.KeyValueItem{
		// 						{
		// 							Key: to.Ptr("key-E"),
		// 							Value: to.Ptr("sample-5"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-F"),
		// 							Value: to.Ptr("sample-6"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-G"),
		// 							Value: to.Ptr("sample-7"),
		// 						},
		// 						{
		// 							Key: to.Ptr("key-H"),
		// 							Value: to.Ptr("sample-8"),
		// 						},
		// 					},
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

type SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDOptions added in v1.2.0

type SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDOptions contains the optional parameters for the SecurityAdvisoryImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager method.

type SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDResponse added in v1.2.0

type SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDResponse struct {
	// The List of eventImpactedResources operation response.
	EventImpactedResourceListResult
}

SecurityAdvisoryImpactedResourcesClientListBySubscriptionIDAndEventIDResponse contains the response from method SecurityAdvisoryImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager.

type SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDOptions added in v1.2.0

type SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDOptions struct {
	// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
	Filter *string
}

SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDOptions contains the optional parameters for the SecurityAdvisoryImpactedResourcesClient.NewListByTenantIDAndEventIDPager method.

type SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDResponse added in v1.2.0

type SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDResponse struct {
	// The List of eventImpactedResources operation response.
	EventImpactedResourceListResult
}

SecurityAdvisoryImpactedResourcesClientListByTenantIDAndEventIDResponse contains the response from method SecurityAdvisoryImpactedResourcesClient.NewListByTenantIDAndEventIDPager.

type ServiceImpactingEvent

type ServiceImpactingEvent struct {
	// Correlation id for the event
	CorrelationID *string

	// Timestamp for when the event started.
	EventStartTime *time.Time

	// Timestamp for when event was submitted/detected.
	EventStatusLastModifiedTime *time.Time

	// Properties of the service impacting event.
	IncidentProperties *ServiceImpactingEventIncidentProperties

	// Status of the service impacting event.
	Status *ServiceImpactingEventStatus
}

ServiceImpactingEvent - Lists the service impacting events that may be affecting the health of the resource.

func (ServiceImpactingEvent) MarshalJSON

func (s ServiceImpactingEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServiceImpactingEvent.

func (*ServiceImpactingEvent) UnmarshalJSON

func (s *ServiceImpactingEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceImpactingEvent.

type ServiceImpactingEventIncidentProperties

type ServiceImpactingEventIncidentProperties struct {
	// Type of Event.
	IncidentType *string

	// Region impacted by the event.
	Region *string

	// Service impacted by the event.
	Service *string

	// Title of the incident.
	Title *string
}

ServiceImpactingEventIncidentProperties - Properties of the service impacting event.

func (ServiceImpactingEventIncidentProperties) MarshalJSON added in v1.1.0

func (s ServiceImpactingEventIncidentProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServiceImpactingEventIncidentProperties.

func (*ServiceImpactingEventIncidentProperties) UnmarshalJSON added in v1.1.0

func (s *ServiceImpactingEventIncidentProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceImpactingEventIncidentProperties.

type ServiceImpactingEventStatus

type ServiceImpactingEventStatus struct {
	// Current status of the event
	Value *string
}

ServiceImpactingEventStatus - Status of the service impacting event.

func (ServiceImpactingEventStatus) MarshalJSON added in v1.1.0

func (s ServiceImpactingEventStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServiceImpactingEventStatus.

func (*ServiceImpactingEventStatus) UnmarshalJSON added in v1.1.0

func (s *ServiceImpactingEventStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceImpactingEventStatus.

type SeverityValues

type SeverityValues string

SeverityValues - The severity level of this active event.

const (
	// SeverityValuesError - Error
	SeverityValuesError SeverityValues = "Error"
	// SeverityValuesInformation - Information
	SeverityValuesInformation SeverityValues = "Information"
	// SeverityValuesWarning - Warning
	SeverityValuesWarning SeverityValues = "Warning"
)

func PossibleSeverityValuesValues

func PossibleSeverityValuesValues() []SeverityValues

PossibleSeverityValuesValues returns the possible values for the SeverityValues const type.

type StageValues

type StageValues string

StageValues - The stage of this active event.

const (
	// StageValuesActive - Active
	StageValuesActive StageValues = "Active"
	// StageValuesArchived - Archived
	StageValuesArchived StageValues = "Archived"
	// StageValuesResolve - Resolve
	StageValuesResolve StageValues = "Resolve"
)

func PossibleStageValuesValues

func PossibleStageValuesValues() []StageValues

PossibleStageValuesValues returns the possible values for the StageValues const type.

type StatusActiveEvent

type StatusActiveEvent struct {
	// The cloud type of this active event.
	Cloud *string

	// The details of active event.
	Description *string

	// The list of emerging issues impacts.
	Impacts []*EmergingIssueImpact

	// The last time modified on this banner.
	LastModifiedTime *time.Time

	// The boolean value of this active event if published or not.
	Published *bool

	// The severity level of this active event.
	Severity *SeverityValues

	// The stage of this active event.
	Stage *StageValues

	// The impact start time on this active event.
	StartTime *time.Time

	// The active event title.
	Title *string

	// The tracking id of this active event.
	TrackingID *string
}

StatusActiveEvent - Active event type of emerging issue.

func (StatusActiveEvent) MarshalJSON

func (s StatusActiveEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StatusActiveEvent.

func (*StatusActiveEvent) UnmarshalJSON

func (s *StatusActiveEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StatusActiveEvent.

type StatusBanner

type StatusBanner struct {
	// The cloud type of this banner.
	Cloud *string

	// The last time modified on this banner.
	LastModifiedTime *time.Time

	// The details of banner.
	Message *string

	// The banner title.
	Title *string
}

StatusBanner - Banner type of emerging issue.

func (StatusBanner) MarshalJSON

func (s StatusBanner) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StatusBanner.

func (*StatusBanner) UnmarshalJSON

func (s *StatusBanner) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StatusBanner.

type SystemData added in v1.2.0

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON added in v1.2.0

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON added in v1.2.0

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type Update added in v1.2.0

type Update struct {
	// A list of metadata tags associated with the event. Possible values include:
	// -Action Recommended: Action may be required by you to avoid possible disruptions or mitigate risks for your services. It
	// is recommended to evaluate these actions and the potential impact on your services.
	// - False Positive: After investigation, we've determined your service is healthy and service issues did not impact your
	// services as originally communicated.
	// - Preliminary PIR: For our largest, most impactful service issues a Preliminary Post Incident Review (PIR) is published
	// generally within 72 hours of mitigation, to summarize what we have learned so far from the still-in-progress investigation.
	// - Final PIR: For service issues, a Final Post Incident Review (PIR) may be published to provide additional details or learnings.
	// Sometimes this requires us to complete an internal retrospective, generally within 14 days of mitigation.
	EventTags []*string

	// Summary text for the given update for the service health event.
	Summary *string

	// It provides the Timestamp for the given update for the service health event.
	UpdateDateTime *time.Time
}

Update for service health event.

func (Update) MarshalJSON added in v1.2.0

func (u Update) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Update.

func (*Update) UnmarshalJSON added in v1.2.0

func (u *Update) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Update.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL