Dela via


Update-AzFrontDoorCdnProfile

Uppdaterar en befintlig Azure Front Door Standard- eller Azure Front Door Premium- eller CDN-profil med det angivna profilnamnet under den angivna prenumerationen och resursgruppen.

Syntax

Update-AzFrontDoorCdnProfile
      -Name <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      [-LogScrubbingRule <IProfileScrubbingRules[]>]
      [-LogScrubbingState <ProfileScrubbingState>]
      [-OriginResponseTimeoutSecond <Int32>]
      [-Tag <Hashtable>]
      [-IdentityType <ManagedServiceIdentityType>]
      [-IdentityUserAssignedIdentity <Hashtable>]
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzFrontDoorCdnProfile
      -InputObject <ICdnIdentity>
      [-LogScrubbingRule <IProfileScrubbingRules[]>]
      [-LogScrubbingState <ProfileScrubbingState>]
      [-OriginResponseTimeoutSecond <Int32>]
      [-Tag <Hashtable>]
      [-IdentityType <ManagedServiceIdentityType>]
      [-IdentityUserAssignedIdentity <Hashtable>]
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Uppdaterar en befintlig Azure Front Door Standard- eller Azure Front Door Premium- eller CDN-profil med det angivna profilnamnet under den angivna prenumerationen och resursgruppen.

Exempel

Exempel 1: Uppdatera en AzureFrontDoor-profil under resursgruppen

$tags = @{
    Tag1 = 11
    Tag2  = 22
}
Update-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -Tag $tags

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Uppdatera en AzureFrontDoor-profil under resursgruppen

Exempel 2: Uppdatera en AzureFrontDoor-profil under resursgruppen via identitet

$tags = @{
    Tag1 = 11
    Tag2  = 22
}
Get-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 | Update-AzFrontDoorCdnProfile -Tag $tags

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Uppdatera en AzureFrontDoor-profil under resursgruppen via identitet

Exempel 3: Aktivera hanterad identitet med systemtilldelad typ till en AzureFrontDoor-profil

Update-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -IdentityType SystemAssigned

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Aktivera hanterad identitet med systemtilldelad typ till en AzureFrontDoor-profil

Exempel 4: Aktivera hanterad identitet med användartilldelad typ till en AzureFrontDoor-profil

$userId =  @{"/subscriptions/subId/resourceGroups/testps-rg-da16jm/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testcdnrpaadidentity" = @{}}
Update-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -IdentityType UserAssigned -IdentityUserAssignedIdentity $userId

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Aktivera hanterad identitet med användartilldelad typ till en AzureFrontDoor-profil

Exempel 5: Aktivera profilloggscrub till en AzureFrontDoor-profil, innehåller bara en LogScrubbingRule

$rule = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled
Update-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -LogScrubbingRule $rule -LogScrubbingState Enabled

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Aktivera profilloggscrub till en AzureFrontDoor-profil, innehåller bara en LogScrubbingRule

Exempel 6: Aktivera profilloggscrub till en AzureFrontDoor-profil, innehåller mer än en LogScrubbingRule

$rule1 = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled 
$rule2 = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable QueryStringArgNames -State Enabled
$rules = New-AzFrontDoorCdnProfileLogScrubbingObject -ScrubbingRule @($rule1, $rule2) -State Enabled

Update-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -LogScrubbingRule $rules.ScrubbingRule -LogScrubbingState Enabled

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Aktivera profilloggscrub till en AzureFrontDoor-profil, innehåller mer än en LogScrubbingRule

Exempel 7: Inaktivera profilloggscrub till en AzureFrontDoor-profil

$rule = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Disabled
Update-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -LogScrubbingRule $rule -LogScrubbingState Disabled

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

Inaktivera profilloggscrub till en AzureFrontDoor-profil

Parametrar

-AsJob

Kör kommandot som ett jobb

Typ:SwitchParameter
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-Confirm

Uppmanar dig att bekräfta innan du kör cmdleten.

Typ:SwitchParameter
Alias:cf
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:PSObject
Alias:AzureRMContext, AzureCredential
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-IdentityType

Typ av hanterad tjänstidentitet (där både SystemAssigned- och UserAssigned-typer tillåts).

Typ:ManagedServiceIdentityType
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-IdentityUserAssignedIdentity

Uppsättningen användartilldelade identiteter som är associerade med resursen. Ordlistenycklarna userAssignedIdentities är ARM-resurs-ID:er i formuläret: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. Ordlistevärdena kan vara tomma objekt ({}) i begäranden.

Typ:Hashtable
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-InputObject

Identitetsparameter För att skapa, se AVSNITTET ANTECKNINGAR för INPUTOBJECT-egenskaper och skapa en hash-tabell.

Typ:ICdnIdentity
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-LogScrubbingRule

Lista över regler för loggrensning som tillämpas på Azure Front Door-profilloggarna. Information om hur du skapar finns i AVSNITTET ANTECKNINGAR för LOGSCRUBBINGRULE-egenskaper och skapa en hash-tabell.

Typ:IProfileScrubbingRules[]
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-LogScrubbingState

Status för loggrensningskonfigurationen. Standardvärdet är Aktiverat.

Typ:ProfileScrubbingState
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-Name

Namnet på Azure Front Door Standard- eller Azure Front Door Premium- eller CDN-profilen som är unik i resursgruppen.

Typ:String
Alias:ProfileName
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-NoWait

Kör kommandot asynkront

Typ:SwitchParameter
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-OriginResponseTimeoutSecond

Tidsgränsen för att skicka och ta emot vid vidarebefordran av begäran till ursprunget. När tidsgränsen nås misslyckas begäran och returneras.

Typ:Int32
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ResourceGroupName

Namnet på resursgruppen i Azure-prenumerationen.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-SubscriptionId

Azure-prenumerations-ID.

Typ:String
Position:Named
Standardvärde:(Get-AzContext).Subscription.Id
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-Tag

Profiltaggar

Typ:Hashtable
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-WhatIf

Visar vad som skulle hända om cmdleten körs. Cmdleten körs inte.

Typ:SwitchParameter
Alias:wi
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

Indata

ICdnIdentity

Utdata

IProfile