New-AzDataShareInvitation
Creates an invitation for share.
Syntax
New-AzDataShareInvitation
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzDataShareInvitation
-ResourceGroupName <String>
-AccountName <String>
-ShareName <String>
-Name <String>
-TargetEmail <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzDataShareInvitation
-ResourceGroupName <String>
-AccountName <String>
-ShareName <String>
-Name <String>
-TargetObjectId <String>
-TargetTenantId <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzDataShareInvitation cmdlet sends an invitation to the target consumer with information about the provider share.
Examples
Example 1
New-AzDataShareInvitation -ResourceGroupName "ADS" -AccountName "WikiAds" -ShareName "AdsShare" -Name "AdsInvitation" -TargetEmail "adstest@microsoft.com"
InvitationId : 167e06ff-567f-4bc7-be0c-645a6de710f3
InvitationStatus : Pending
Sender : adsprovider@microsoft.com
SentAt : 7/8/2019 10:47:10 PM
TargetEmail : adstest@microsoft.com
TargetObjectId :
TargetTenantId :
Id : /subscriptions/1834da9b-787a-44f6-ae81-60707ab8c957/resourceGroups/ADS/ providers/Microsoft.DataShare/accounts/WikiAds/shares/AdsShare/invitations/AdsInvitation
Name : AdsInvitation
Type : Microsoft.DataShare/Invitations
This command creates an invitation AdsInvitation for share AdsShare and sends it to target email adstest@microsoft.com.
Parameters
-AccountName
Azure data share account name
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Azure data share invitation name
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The resource group name of the azure data share account
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ShareName
Azure data share name
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetEmail
Target email id
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetObjectId
Target object id
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetTenantId
Target tenant id
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Azure PowerShell