CmdID / PowerShell / Cmdlets / New
New-MgDomain
Adds a domain to the tenant. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 31 parameters Its page in the reference
Parameters
Show its 31 parameters
-AdditionalPropertiesAdditional Parameters-AuthenticationTypeIndicates the configured authentication type for the domain.-AvailabilityStatusThis property is always null except when the verify action is used.-BodyParameterdomain To construct, see NOTES section for BODYPARAMETER properties and create a hash table.-BreakWait for .NET debugger to attach-Confirm, -cfPrompts you for confirmation before running the cmdlet.-DomainNameReferencesThe objects such as users and groups that reference the domain ID.-FederationConfigurationDomain settings configured by a customer when federated with Microsoft Entra ID.-HeadersOptional headers that will be added to the request.-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline-IdThe unique identifier for an entity.-IsAdminManagedThe value of the property is false if the DNS record management of the domain is delegated to Microsoft 365.-IsDefaulttrue if this is the default domain that is used for user creation.-IsInitialtrue if this is the initial domain created by Microsoft Online Services (contoso.com).-IsRoottrue if the domain is a verified root domain.-IsVerifiedtrue if the domain completed domain ownership verification.-Manufacturer-Model-PasswordNotificationWindowInDaysSpecifies the number of days before a user receives notification that their password expires.-PasswordValidityPeriodInDaysSpecifies the length of time that a password is valid before it must be changed.-ProxyThe URI for the proxy server to use-ProxyCredentialCredentials for a proxy server to use for the remote call-ProxyUseDefaultCredentialsUse the default credentials for the proxy-ResponseHeadersVariable, -RHVOptional Response Headers Variable.-RootDomaindomain To construct, see NOTES section for ROOTDOMAIN properties and create a hash table.-ServiceConfigurationRecordsDNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services.-StatedomainState To construct, see NOTES section for STATE properties and create a hash table.-SupportedServicesThe capabilities assigned to the domain.-VerificationDnsRecordsDNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID.-WhatIf, -wiRuns the command in a mode that only reports what would happen without performing the actions.