Get-AzMongoDBOrganization
获取 OrganizationResource
语法
Get-AzMongoDBOrganization
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzMongoDBOrganization
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzMongoDBOrganization
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzMongoDBOrganization
-InputObject <IMongoDbIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取 OrganizationResource
示例
示例 1:获取资源组中的所有组织
Get-AzMongoDBOrganization -ResourceGroupName yashika-rg
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
East US 2 testorg5 5/15/2025 7:17:14 PM yashikajain@microsoft.com User 5/16/2025 5:29:13 AM yashikajain@microsoft.com User yashika-rg
East US 2 test-mongodb-1 5/16/2025 6:03:20 AM yashikajain@microsoft.com User 5/16/2025 6:05:36 AM b059abce-70fd-4c8f-a117-96d2192e90e1 Application yashika-rg
East US 2 test-mongodb-3 5/24/2025 12:14:55 PM yashikajain@microsoft.com User 5/24/2025 12:16:00 PM b059abce-70fd-4c8f-a117-96d2192e90e1 Application yashika-rg
此命令将获取给定订阅中资源组中所有资源的所有组织详细信息。
示例 2:获取资源组中的特定组织
Get-AzMongoDBOrganization -ResourceGroupName yashika-rg -Name testorg5
Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/yashika-rg/providers/MongoDB.Atlas/organizations/t
estorg5
IdentityPrincipalId :
IdentityTenantId :
IdentityType :
IdentityUserAssignedIdentity : {
}
Location : East US 2
MarketplaceSubscriptionId : 7c9656d5-bf22-4f97-dba3-783e05b079f8
MarketplaceSubscriptionStatus : Subscribed
Name : testorg5
OfferDetailOfferId : mongodb_atlas_azure_native_prod
OfferDetailPlanId : private_plan
OfferDetailPlanName : Pay as You Go (Free) (Private)
OfferDetailPublisherId : mongodb
OfferDetailTermId : gmz7xq9ge3py
OfferDetailTermUnit : P1M
PartnerPropertyOrganizationId : 68263def1158e05a95034cd7
PartnerPropertyOrganizationName : testorg5
PartnerPropertyRedirectUrl : https://account.mongodb.com/account/reset/password?email=yashikajain%40microsoft.com&orgId=68263def1158e05a95034cd7&s
houldRedirect=true
ProvisioningState : Succeeded
ResourceGroupName : yashika-rg
SystemDataCreatedAt : 5/15/2025 7:17:14 PM
SystemDataCreatedBy : yashikajain@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 5/16/2025 5:29:13 AM
SystemDataLastModifiedBy : yashikajain@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
"testName": "TestValue3"
}
Type : mongodb.atlas/organizations
UserCompanyName :
UserEmailAddress : yashikajain@microsoft.com
UserFirstName :
UserLastName :
UserPhoneNumber :
UserUpn : yashikajain@microsoft.com
此命令将获取给定订阅中资源名称的组织的详细信息。
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | IMongoDbIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
组织资源的名称
类型: | String |
别名: | OrganizationName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 此名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。 该值必须是 UUID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |