Bagikan melalui


Update-AzFrontDoorCdnProfile

Memperbarui profil Azure Front Door Standard atau Azure Front Door Premium atau CDN yang ada dengan nama profil yang ditentukan di bawah langganan dan grup sumber daya yang ditentukan.

Sintaks

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>]

Deskripsi

Memperbarui profil Azure Front Door Standard atau Azure Front Door Premium atau CDN yang ada dengan nama profil yang ditentukan di bawah langganan dan grup sumber daya yang ditentukan.

Contoh

Contoh 1: Memperbarui profil AzureFrontDoor di bawah grup sumber daya

$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

Memperbarui profil AzureFrontDoor di bawah grup sumber daya

Contoh 2: Memperbarui profil AzureFrontDoor di bawah grup sumber daya melalui identitas

$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

Memperbarui profil AzureFrontDoor di bawah grup sumber daya melalui identitas

Contoh 3: Mengaktifkan identitas terkelola menggunakan jenis SystemAssigned ke profil AzureFrontDoor

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

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

Mengaktifkan identitas terkelola menggunakan jenis SystemAssigned ke profil AzureFrontDoor

Contoh 4: Mengaktifkan identitas terkelola menggunakan jenis UserAssigned ke profil AzureFrontDoor

$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

Mengaktifkan identitas terkelola menggunakan jenis UserAssigned ke profil AzureFrontDoor

Contoh 5: Aktifkan Log Profilcrub ke profil AzureFrontDoor, hanya berisi satu 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

Aktifkan Logscrub Profil ke profil AzureFrontDoor, hanya berisi satu LogScrubbingRule

Contoh 6: Aktifkan Logscrub Profil ke profil AzureFrontDoor, berisi lebih dari satu 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

Aktifkan Logscrub Profil ke profil AzureFrontDoor, berisi lebih dari satu LogScrubbingRule

Contoh 7: Nonaktifkan Log Profilcrub ke profil AzureFrontDoor

$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

Menonaktifkan Profil Logscrub ke profil AzureFrontDoor

Parameter

-AsJob

Jalankan perintah sebagai pekerjaan

Jenis:SwitchParameter
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Meminta Anda mengonfirmasi sebelum menjalankan cmdlet.

Jenis:SwitchParameter
Aliases:cf
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.

Jenis:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-IdentityType

Jenis identitas layanan terkelola (di mana jenis SystemAssigned dan UserAssigned diizinkan).

Jenis:ManagedServiceIdentityType
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-IdentityUserAssignedIdentity

Kumpulan identitas yang ditetapkan pengguna yang terkait dengan sumber daya. Kunci kamus userAssignedIdentities akan menjadi id sumber daya ARM dalam formulir: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. Nilai kamus dapat berupa objek kosong ({}) dalam permintaan.

Jenis:Hashtable
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Parameter Identitas Untuk membangun, lihat bagian CATATAN untuk properti INPUTOBJECT dan membuat tabel hash.

Jenis:ICdnIdentity
Position:Named
nilai default:None
Diperlukan:True
Accept pipeline input:True
Accept wildcard characters:False

-LogScrubbingRule

Daftar aturan scrubbing log yang diterapkan ke log profil Azure Front Door. Untuk membuat, lihat bagian CATATAN untuk properti LOGSCRUBBINGRULE dan membuat tabel hash.

Jenis:IProfileScrubbingRules[]
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-LogScrubbingState

Status konfigurasi scrubbing log. Nilai default diaktifkan.

Jenis:ProfileScrubbingState
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Nama profil Azure Front Door Standard atau Azure Front Door Premium atau CDN yang unik dalam grup sumber daya.

Jenis:String
Aliases:ProfileName
Position:Named
nilai default:None
Diperlukan:True
Accept pipeline input:False
Accept wildcard characters:False

-NoWait

Jalankan perintah secara asinkron

Jenis:SwitchParameter
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-OriginResponseTimeoutSecond

Kirim dan terima batas waktu pada permintaan penerusan ke asal. Ketika waktu habis tercapai, permintaan gagal dan kembali.

Jenis:Int32
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Nama grup Sumber Daya dalam langganan Azure.

Jenis:String
Position:Named
nilai default:None
Diperlukan:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

ID Langganan Azure.

Jenis:String
Position:Named
nilai default:(Get-AzContext).Subscription.Id
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Tag profil

Jenis:Hashtable
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Menunjukkan apa yang akan terjadi jika cmdlet berjalan. Cmdlet tidak dijalankan.

Jenis:SwitchParameter
Aliases:wi
Position:Named
nilai default:None
Diperlukan:False
Accept pipeline input:False
Accept wildcard characters:False

Input

ICdnIdentity

Output

IProfile