# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::AzureMetadata (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::AzureMetadata.

Azure metadata associated with the resource, only applicable if the finding's
cloud provider is Microsoft Azure.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #management_groups

    def management_groups() -> ::Array<::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureManagementGroup>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureManagementGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureManagementGroup)\>) --- A list of Azure management groups associated with the resource, ordered from lowest level (closest to the subscription) to highest level.

### #management_groups=

    def management_groups=(value) -> ::Array<::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureManagementGroup>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureManagementGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureManagementGroup)\>) --- A list of Azure management groups associated with the resource, ordered from lowest level (closest to the subscription) to highest level.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureManagementGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureManagementGroup)\>) --- A list of Azure management groups associated with the resource, ordered from lowest level (closest to the subscription) to highest level.

### #resource_group

    def resource_group() -> ::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureResourceGroup

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureResourceGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureResourceGroup)) --- The Azure resource group associated with the resource.

### #resource_group=

    def resource_group=(value) -> ::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureResourceGroup

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureResourceGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureResourceGroup)) --- The Azure resource group associated with the resource.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureResourceGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureResourceGroup)) --- The Azure resource group associated with the resource.

### #subscription

    def subscription() -> ::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureSubscription

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureSubscription](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureSubscription)) --- The Azure subscription associated with the resource.

### #subscription=

    def subscription=(value) -> ::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureSubscription

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureSubscription](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureSubscription)) --- The Azure subscription associated with the resource.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureSubscription](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureSubscription)) --- The Azure subscription associated with the resource.

### #tenant

    def tenant() -> ::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureTenant

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureTenant](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureTenant)) --- The Azure Entra tenant associated with the resource.

### #tenant=

    def tenant=(value) -> ::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureTenant

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureTenant](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureTenant)) --- The Azure Entra tenant associated with the resource.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::AzureMetadata::AzureTenant](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AzureMetadata-AzureTenant)) --- The Azure Entra tenant associated with the resource.