public sealed class AzureMetadata.Types.AzureSubscription : IMessage<AzureMetadata.Types.AzureSubscription>, IEquatable<AzureMetadata.Types.AzureSubscription>, IDeepCloneable<AzureMetadata.Types.AzureSubscription>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class AzureMetadata.Types.AzureSubscription.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation provides details for the \u003ccode\u003eAzureMetadata.Types.AzureSubscription\u003c/code\u003e class, part of the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAzureSubscription\u003c/code\u003e class represents an Azure subscription and inherits from the object class while implementing interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor (\u003ccode\u003eAzureSubscription()\u003c/code\u003e) and one that accepts another \u003ccode\u003eAzureSubscription\u003c/code\u003e object (\u003ccode\u003eAzureSubscription(AzureMetadata.Types.AzureSubscription other)\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eDisplayName\u003c/code\u003e which is a string that represents the display name of the Azure subscription and \u003ccode\u003eId\u003c/code\u003e which represents the UUID of the subscription as a string.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class AzureMetadata.Types.AzureSubscription (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types.AzureSubscription)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types.AzureSubscription)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types.AzureSubscription) \n\n public sealed class AzureMetadata.Types.AzureSubscription : IMessage\u003cAzureMetadata.Types.AzureSubscription\u003e, IEquatable\u003cAzureMetadata.Types.AzureSubscription\u003e, IDeepCloneable\u003cAzureMetadata.Types.AzureSubscription\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class AzureMetadata.Types.AzureSubscription.\n\nRepresents an Azure subscription. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AzureMetadata.Types.AzureSubscription \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AzureMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types)[AzureSubscription](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types.AzureSubscription), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AzureMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types)[AzureSubscription](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types.AzureSubscription), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AzureMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types)[AzureSubscription](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AzureMetadata.Types.AzureSubscription), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### AzureSubscription()\n\n public AzureSubscription()\n\n### AzureSubscription(AzureSubscription)\n\n public AzureSubscription(AzureMetadata.Types.AzureSubscription other)\n\nProperties\n----------\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nThe display name of the Azure subscription.\n\n### Id\n\n public string Id { get; set; }\n\nThe UUID of the Azure subscription, for example,\n`291bba3f-e0a5-47bc-a099-3bdcb2a50a05`."]]